]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: remove unnecessary variable assignment
authorArnd Bergmann <arnd@arndb.de>
Wed, 19 Apr 2017 17:30:59 +0000 (19:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2017 17:25:34 +0000 (13:25 -0400)
commit5fcf1241a3d5e182c2e9e7cb53f21ad6dca9a327
tree2c9278ae27df99418d08e7e6435bf23a06e7c4d2
parent1284c40c9b0471a1560181007e19875cfd007843
liquidio: remove unnecessary variable assignment

gcc points out an useless assignment that was added during code refactoring:

drivers/net/ethernet/cavium/liquidio/lio_ethtool.c: In function 'octnet_intrmod_callback':
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c:1315:59: error: parameter 'oct_dev' set but not used [-Werror=unused-but-set-parameter]

This is harmless but can clearly be remove to avoid the warning.

Fixes: 143ea52200f9 ("liquidio: refactor interrupt moderation code")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c