i40e: fix possible compiler warning in xsk TX path
authorMagnus Karlsson <magnus.karlsson@intel.com>
Fri, 31 Aug 2018 11:40:01 +0000 (13:40 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 31 Aug 2018 23:38:16 +0000 (01:38 +0200)
commitcf484f9f91f702e61eb47f7b142de6edc33a4a88
tree1a8dd159d683a9d116ff600bdb2c7989438f77c6
parent9746b1ee2edcabfb8f40d5311f23ac2f01f152ed
i40e: fix possible compiler warning in xsk TX path

With certain gcc versions, it was possible to get the warning
"'tx_desc' may be used uninitialized in this function" for the
i40e_xmit_zc. This was not possible, however this commit simplifies
the code path so that this warning is no longer emitted.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/intel/i40e/i40e_xsk.c