mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
RDMA/bnxt_re: Remove unnecessary goto in bnxt_re_netdev_event
Return directly in case of error without a goto label as there is no cleanup actions performed. Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Link: https://patch.msgid.link/1733888745-30939-3-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
c7f2cfe81e
commit
ae51cb9821
|
|
@ -2241,7 +2241,7 @@ static int bnxt_re_netdev_event(struct notifier_block *notifier,
|
|||
real_dev = netdev;
|
||||
|
||||
if (real_dev != netdev)
|
||||
goto exit;
|
||||
return NOTIFY_DONE;
|
||||
|
||||
rdev = bnxt_re_from_netdev(real_dev);
|
||||
if (!rdev)
|
||||
|
|
@ -2260,7 +2260,7 @@ static int bnxt_re_netdev_event(struct notifier_block *notifier,
|
|||
break;
|
||||
}
|
||||
ib_device_put(&rdev->ibdev);
|
||||
exit:
|
||||
|
||||
return NOTIFY_DONE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user