]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72b674ad01eb5d21744c7d03aaef8edd95c671a3
tree1a8dd159d683a9d116ff600bdb2c7989438f77c6
parent924eaa8d3fa5adf4270a7e49701d130e49f46af4
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