]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: wilc1000: remove extraneous variable
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Jan 2016 14:36:17 +0000 (15:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 01:35:00 +0000 (18:35 -0700)
commitec176528312064f611a7d1ac3bbe16675e2ab97e
tree803fe1263c187ffdf2f74fbf7de43c81e0bd21fd
parenta29ab351c8753bba3fd2dab8bb99454393c44dfb
staging: wilc1000: remove extraneous variable

commit ce7b516f3f9e11fe4ee06fad0d7e853bb6e8f160 upstream.

Building wilc1000 with clang currently fails in the staging-next branch:

drivers/staging/wilc1000/wilc_spi.c:123:34: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct wilc1000_ops' [-Wtentative-definition-incomplete-type]
static const struct wilc1000_ops wilc1000_spi_ops;

The reason is that wilc1000_ops was left behind after a recent cleanup,
and is completely unused and also uninitialized and const and has an
incomplete type.

Removing the variable is obviously correct, and gets rid of the warning.
No idea why gcc does not complain about it though.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_spi.c