diff options
| author | Kalesh AP <[email protected]> | 2024-12-11 03:45:42 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2024-12-16 13:22:06 +0000 |
| commit | ae51cb98213268464a7fba9273cb979037516e9a (patch) | |
| tree | 92ff9b2e38ede826d5ff0ef7a4a2890b589349d1 /drivers/infiniband/hw/bnxt_re/main.c | |
| parent | RDMA/bnxt_re: Remove extra new line in bnxt_re_netdev_event (diff) | |
| download | kernel-ae51cb98213268464a7fba9273cb979037516e9a.tar.gz kernel-ae51cb98213268464a7fba9273cb979037516e9a.zip | |
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 <[email protected]>
Signed-off-by: Selvin Xavier <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/main.c')
| -rw-r--r-- | drivers/infiniband/hw/bnxt_re/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index 735bd781dcfc..ae5025b09282 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -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; } |
