aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorVarka Bhadram <varkab@cdac.in>2014-07-16 01:29:47 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-17 02:15:00 -0400
commit498044bb2ba39a6fb12c26298c697d5cd9b7378e (patch)
tree43425d2bc69836b85353cc095e1aa1f5f02117d6 /net/netlink
parentc8a89c4a1d58230192cf7243520bf7f9899239f4 (diff)
netlink: remove bool varible
This patch removes the bool variable 'pass'. If the swith case exist return true or return false. Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 837ff9a57503..1b38f7fe12f1 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -170,7 +170,6 @@ EXPORT_SYMBOL_GPL(netlink_remove_tap);
170static bool netlink_filter_tap(const struct sk_buff *skb) 170static bool netlink_filter_tap(const struct sk_buff *skb)
171{ 171{
172 struct sock *sk = skb->sk; 172 struct sock *sk = skb->sk;
173 bool pass = false;
174 173
175 /* We take the more conservative approach and 174 /* We take the more conservative approach and
176 * whitelist socket protocols that may pass. 175 * whitelist socket protocols that may pass.
@@ -184,11 +183,10 @@ static bool netlink_filter_tap(const struct sk_buff *skb)
184 case NETLINK_FIB_LOOKUP: 183 case NETLINK_FIB_LOOKUP:
185 case NETLINK_NETFILTER: 184 case NETLINK_NETFILTER:
186 case NETLINK_GENERIC: 185 case NETLINK_GENERIC:
187 pass = true; 186 return true;
188 break;
189 } 187 }
190 188
191 return pass; 189 return false;
192} 190}
193 191
194static int __netlink_deliver_tap_skb(struct sk_buff *skb, 192static int __netlink_deliver_tap_skb(struct sk_buff *skb,