Thread (2 messages) flat view 2 messages, 2 authors, 2020-09-14

Re: [PATCH net-next] net: qlcnic: remove unused variable 'val' in qlcnic_83xx_cam_unlock()

From: David Miller <davem@davemloft.net>
Date: 2020-09-14 20:44:36
Also in: lkml

From: Zhang Changzhong <redacted>
Date: Mon, 14 Sep 2020 21:24:39 +0800
Fixes the following W=1 kernel build warning(s):

drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c:661:6: warning:
 variable 'val' set but not used [-Wunused-but-set-variable]
  661 |  u32 val;
      |      ^~~

After commit 7f9664525f9c ("qlcnic: 83xx memory map and HW access
routines"), variable 'val' is never used in qlcnic_83xx_cam_unlock(), so
removing it to avoid build warning.

Reported-by: Hulk Robot <redacted>
Signed-off-by: Zhang Changzhong <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help