]> git.baikalelectronics.ru Git - kernel.git/commit
net: Remove redundant if statements
authorYajun Deng <yajun.deng@linux.dev>
Thu, 5 Aug 2021 11:55:27 +0000 (19:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 12:27:50 +0000 (13:27 +0100)
commitef5227b2a393f226732de93e3d6f072f17361690
treeb9e62879f43f63602da7a68c20d8e58a5acf79f3
parent5119c8b6d6b08a9dacf24da1db640c4787ad3f6b
net: Remove redundant if statements

The 'if (dev)' statement already move into dev_{put , hold}, so remove
redundant if statements.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
39 files changed:
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/distributed-arp-table.c
net/batman-adv/gateway_client.c
net/batman-adv/multicast.c
net/batman-adv/originator.c
net/batman-adv/translation-table.c
net/can/raw.c
net/core/dev.c
net/core/drop_monitor.c
net/core/dst.c
net/core/neighbour.c
net/decnet/dn_dev.c
net/decnet/dn_fib.c
net/decnet/dn_route.c
net/ethtool/netlink.c
net/ieee802154/nl-phy.c
net/ieee802154/nl802154.c
net/ieee802154/socket.c
net/ipv4/fib_semantics.c
net/ipv4/icmp.c
net/ipv4/route.c
net/ipv6/addrconf.c
net/ipv6/ip6mr.c
net/ipv6/route.c
net/llc/af_llc.c
net/netfilter/nf_flow_table_offload.c
net/netfilter/nf_queue.c
net/netlabel/netlabel_unlabeled.c
net/netrom/nr_loopback.c
net/netrom/nr_route.c
net/packet/af_packet.c
net/phonet/af_phonet.c
net/phonet/pn_dev.c
net/phonet/socket.c
net/sched/act_mirred.c
net/smc/smc_ib.c
net/smc/smc_pnet.c
net/wireless/nl80211.c
net/wireless/scan.c