mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
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 <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=10867 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Link: https://patch.msgid.link/20240918021632.36091-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
7acad3c442
commit
7092094192
1 changed files with 0 additions and 2 deletions
|
@ -1977,7 +1977,6 @@ static void bnxt_re_remove_device(struct bnxt_re_dev *rdev, u8 op_type,
|
|||
static void bnxt_re_remove(struct auxiliary_device *adev)
|
||||
{
|
||||
struct bnxt_re_en_dev_info *en_info = auxiliary_get_drvdata(adev);
|
||||
struct bnxt_en_dev *en_dev;
|
||||
struct bnxt_re_dev *rdev;
|
||||
|
||||
mutex_lock(&bnxt_re_mutex);
|
||||
|
@ -1985,7 +1984,6 @@ static void bnxt_re_remove(struct auxiliary_device *adev)
|
|||
mutex_unlock(&bnxt_re_mutex);
|
||||
return;
|
||||
}
|
||||
en_dev = en_info->en_dev;
|
||||
rdev = en_info->rdev;
|
||||
|
||||
if (rdev)
|
||||
|
|
Loading…
Reference in a new issue