]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:28:51 +0000 (16:28 -0300)
commit28cbc899cd8d847d336232f0ccc21a05fd5ea16a
treecb41cadc45241b9c325ac7c62d1965e72c5c24f2
parent5643c76fafbcbf6fb76c9dd67bdd42a65baa7959
net: ena: remove code that does nothing

BugLink: https://bugs.launchpad.net/bugs/1890845
commit cac7172f2d33ae75601d1bc928532d3ef7513db9 upstream.

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/amazon/ena/ena_ethtool.c