]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: remove redundant initialization of 'head' and pointer txq
authorColin Ian King <colin.king@canonical.com>
Wed, 31 Jan 2018 16:14:25 +0000 (16:14 +0000)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 00:27:22 +0000 (16:27 -0800)
commit4645149a4b2494f8f1b4e3c74241b19e3df5ac73
tree1974bc58bb221d8462ef71a4bea1cb044d172a1e
parent00990f17e874f87e5500aba0a55da5c51b9be290
be2net: remove redundant initialization of 'head' and pointer txq

Orabug: 27615319

Variable head is initialized to a value that is never read and is
being updated to a new value a few lines later, hence this
initialization is redundant and can be safely removed as well
as the now unused pointer txq.

Cleans up clang warning:
drivers/net/ethernet/emulex/benet/be_main.c:996:6: warning: Value
stored to 'head' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 2e85283dabc22f4715b136e8a7426bd9bef4ce69)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/emulex/benet/be_main.c