]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Feb 2018 14:43:00 +0000 (09:43 -0500)
commit2e85283dabc22f4715b136e8a7426bd9bef4ce69
treedd10dc4044ae58e734d4c13a46fe342d192d684d
parent26c26ab02c49e64dbac3a9f56806005bc9e8b914
be2net: remove redundant initialization of 'head' and pointer txq

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>
drivers/net/ethernet/emulex/benet/be_main.c