]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
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: 50c0add534d2 ("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

index dab10c7e4443df10c702898e23c198965b7a5b38..579dc7336f58d712c4b04b8c8d1492f48d64ed08 100644 (file)
@@ -1323,8 +1323,6 @@ static void octnet_intrmod_callback(struct octeon_device *oct_dev,
 
        ctx->status = status;
 
-       oct_dev = lio_get_device(ctx->octeon_id);
-
        WRITE_ONCE(ctx->cond, 1);
 
        /* This barrier is required to be sure that the response has been