netlink: remove bool varible
Subsystems (2)
PATCH 1/1 netlink: remove bool varible
From: Varka Bhadram <[email protected]>
This patch removes the bool variable 'pass'. If the swith case exist return true or return false.
Signed-off-by Varka Bhadram <[email protected]>
--- net/netlink/af_netlink.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
net/netlink/af_netlink.c +2 -4
@@ -170,7 +170,6 @@ EXPORT_SYMBOL_GPL(netlink_remove_tap);static bool netlink_filter_tap (const struct sk_buff *skb) {struct sock *sk = skb->sk; -bool pass = false;/* We take the more conservative approach and * whitelist socket protocols that may pass.
@@ -184,11 +183,10 @@ static bool netlink_filter_tap(const struct sk_buff *skb)case NETLINK_FIB_LOOKUP :case NETLINK_NETFILTER :case NETLINK_GENERIC : - pass = true; -break ; +return true; } -return pass; +return false; } static int __netlink_deliver_tap_skb(struct sk_buff *skb,
Signature · 1 line
1.7.9.5
David Miller
maintainerFrom: [email protected]
Date: Wed, 16 Jul 2014 10:59:47 +0530
Quoted 6 lines
From: Varka Bhadram <[email protected]>
This patch removes the bool variable 'pass'. If the swith case exist return true or return false.
Signed-off-by Varka Bhadram <[email protected]>
This is fine, applied, thanks.