]> asedeno.scripts.mit.edu Git - linux.git/commit
vmxnet3: remove redundant initialization of pointer 'rq'
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Feb 2018 17:29:21 +0000 (17:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Feb 2018 19:54:28 +0000 (14:54 -0500)
commit5e264e2b532966bfcfe8869a3fccc9876ec2122c
tree63c5bf7ea25a3ac4208f1c9b21c2e6893847eb5f
parent3b51cc75eba28a7b2ca013f8255a4fd425b12b26
vmxnet3: remove redundant initialization of pointer 'rq'

Pointer rq is being initialized but this value is never read, it
is being updated inside a for-loop. Remove the initialization and
move it into the scope of the for-loop.

Cleans up clang warning:
drivers/net/vmxnet3/vmxnet3_drv.c:2763:27: warning: Value stored
to 'rq' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Shrikrishna Khare <skhare@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c