]> git.hungrycats.org Git - linux/commitdiff
[NET]: Fix pkt_act.h warning with gcc-2.95
authorAndrew Morton <akpm@osdl.org>
Fri, 10 Sep 2004 07:35:19 +0000 (00:35 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Fri, 10 Sep 2004 07:35:19 +0000 (00:35 -0700)
include/net/pkt_act.h: In function 'tcf_hash_search':
include/net/pkt_act.h:218: warning: return makes integer from pointer without a cast

gcc-2.95 is stupid.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_act.h

index be5d651e4fe36f3b3b2c7499eadd28ed6e6f59cc..e7e7da3550129ecfd7de7643fb07ad21a76f5223 100644 (file)
@@ -212,9 +212,8 @@ tcf_hash_search(struct tc_action *a, u32 index)
        if (p != NULL) {
                a->priv = p;
                return 1;
-       } else {
-               return 0;
        }
+       return 0;
 }
 
 #ifdef CONFIG_NET_ACT_INIT