]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: remove code that does nothing
authorSameeh Jubran <sameehj@amazon.com>
Sun, 3 May 2020 09:52:15 +0000 (09:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 22:59:30 +0000 (15:59 -0700)
commit51c5ffd71e4a2319bfcf9c938866cac712e33803
treea08bb50141e9f5f546ba5040786610e04193def2
parent8136b3c71ff5d21d140e0a23ac00310e5be79a42
net: ena: remove code that does nothing

Both key and func parameters are pointers on the stack.
Setting them to NULL does nothing.
The original intent was to leave the key and func unset in this case,
but for this to happen nothing needs to be done as the calling
function ethtool_get_rxfh() already clears key and func.

This commit removes the above described useless code.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_ethtool.c