dead code in tc/m_ematch.c

From: Jochen Voss <hidden>
Date: 2008-09-13 18:34:36

Hi,

while looking through the source for the Debian package
iproute-20080725, I found the following bit of code (file
tc/m_ematch.c, lines 163-173):

    static struct ematch_util *get_ematch_kind_num(__u16 kind)
    {
	    char name[32];

	    if (lookup_map(kind, name, sizeof(name), EMATCH_MAP) < 0)
		    return NULL;

	    return get_ematch_kind(name);

	    return NULL;
    }

Obviously the second return statement has no effect.  Probably it
should be removed.

I hope this helps,
Jochen
-- 
http://seehuhn.de/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help