]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Remove set but not used variable 'p_archipelago'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 27 Sep 2018 06:45:06 +0000 (06:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2018 17:25:11 +0000 (10:25 -0700)
commit16bd541b822a90342b1cfaf159be780bce0a80b9
tree5cb2060c7f3fd829db34f88647b6e3525ebf0a5e
parent745330603eb13f73486a4c3d9e3bc3fb1c753b6d
qed: Remove set but not used variable 'p_archipelago'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/qlogic/qed/qed_ooo.c: In function 'qed_ooo_delete_isles':
drivers/net/ethernet/qlogic/qed/qed_ooo.c:354:30: warning:
 variable 'p_archipelago' set but not used [-Wunused-but-set-variable]

drivers/net/ethernet/qlogic/qed/qed_ooo.c: In function 'qed_ooo_join_isles':
drivers/net/ethernet/qlogic/qed/qed_ooo.c:463:30: warning:
 variable 'p_archipelago' set but not used [-Wunused-but-set-variable]

Since commit 289e99d31e01 ("qed: Make OOO archipelagos into an array"),
'p_archipelago' is no longer in use.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_ooo.c