Skip to content

Commit 7092094

Browse files
Jiapeng Chongrleon
authored andcommitted
RDMA/bnxt_re: Remove the unused variable en_dev
Variable en_dev is not effectively used, so delete it. drivers/infiniband/hw/bnxt_re/main.c:1980:22: warning: variable ‘en_dev’ set but not used. Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=10867 Signed-off-by: Jiapeng Chong <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 7acad3c commit 7092094

File tree

1 file changed

+0
-2
lines changed
  • drivers/infiniband/hw/bnxt_re

1 file changed

+0
-2
lines changed

drivers/infiniband/hw/bnxt_re/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,15 +1977,13 @@ static void bnxt_re_remove_device(struct bnxt_re_dev *rdev, u8 op_type,
19771977
static void bnxt_re_remove(struct auxiliary_device *adev)
19781978
{
19791979
struct bnxt_re_en_dev_info *en_info = auxiliary_get_drvdata(adev);
1980-
struct bnxt_en_dev *en_dev;
19811980
struct bnxt_re_dev *rdev;
19821981

19831982
mutex_lock(&bnxt_re_mutex);
19841983
if (!en_info) {
19851984
mutex_unlock(&bnxt_re_mutex);
19861985
return;
19871986
}
1988-
en_dev = en_info->en_dev;
19891987
rdev = en_info->rdev;
19901988

19911989
if (rdev)

0 commit comments

Comments
 (0)