Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mctp: Remove redundant if statements

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

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Xu Wang and committed by
David S. Miller
d9e56d18 98fa41d6

+1 -2
+1 -2
net/mctp/route.c
··· 890 890 if (!ext_rt) 891 891 mctp_route_release(rt); 892 892 893 - if (dev) 894 - dev_put(dev); 893 + dev_put(dev); 895 894 896 895 return rc; 897 896