From 52eb5487edf194fadee57145bd19a83acb48ee07 Mon Sep 17 00:00:00 2001 From: Andrew Morton <akpm@osdl.org> Date: Fri, 10 Sep 2004 00:35:19 -0700 Subject: [PATCH] [NET]: Fix pkt_act.h warning with gcc-2.95 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/net/pkt_act.h b/include/net/pkt_act.h index be5d651e4fe3..e7e7da355012 100644 --- a/include/net/pkt_act.h +++ b/include/net/pkt_act.h @@ -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 -- 2.30.9