From d9e56d1839fa40dbaab640ec205390826bddf8ae Mon Sep 17 00:00:00 2001 From: Xu Wang Date: Thu, 2 Dec 2021 07:55:35 +0000 Subject: [PATCH] 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 Signed-off-by: David S. Miller --- net/mctp/route.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/mctp/route.c b/net/mctp/route.c index 8d759b4..976a2b7 100644 --- a/net/mctp/route.c +++ b/net/mctp/route.c @@ -890,8 +890,7 @@ out_release: if (!ext_rt) mctp_route_release(rt); - if (dev) - dev_put(dev); + dev_put(dev); return rc; -- 2.7.4