]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfp: flower: remove unused index from nfp_fl_pedit()
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Feb 2019 16:41:13 +0000 (17:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 19:46:45 +0000 (11:46 -0800)
commitc0bc5d8e2badeebe14b4005da794a8705b69320e
tree88da540cc522f0d1df2c49e405541136bd004bd6
parentb9ad6de534279daa1158f52693f6c0f54c6de6ae
nfp: flower: remove unused index from nfp_fl_pedit()

Static checker warning complains on uninitialized variable:

        drivers/net/ethernet/netronome/nfp/flower/action.c:618 nfp_fl_pedit()
        error: uninitialized symbol 'idx'.

Which is actually never used from the functions that take it as
parameter. Remove it.

Fixes: 738678817573 ("drivers: net: use flow action infrastructure")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/action.c