]> git.baikalelectronics.ru Git - kernel.git/commit
net: netsec: remove superfluous if statement
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 9 Jul 2019 21:14:48 +0000 (00:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 21:46:40 +0000 (14:46 -0700)
commit65e00998362258ca07e6522366033c0c52e45e51
tree47eca0e633ef4b6235b46f09d848d7addf873cc8
parentcbcb0105349a2259aaf7c727107c863e58fea0f1
net: netsec: remove superfluous if statement

While freeing tx buffers the memory has to be unmapped if the packet was
an skb or was used for .ndo_xdp_xmit using the same arguments. Get rid
of the unneeded extra 'else if' statement

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c