Commit cac7172f authored by Sameeh Jubran's avatar Sameeh Jubran Committed by David S. Miller

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: default avatarArthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: default avatarSameeh Jubran <sameehj@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0af3c4e2
...@@ -674,11 +674,8 @@ static int ena_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, ...@@ -674,11 +674,8 @@ static int ena_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key,
*/ */
rc = ena_com_get_hash_function(adapter->ena_dev, &ena_func); rc = ena_com_get_hash_function(adapter->ena_dev, &ena_func);
if (rc) { if (rc) {
if (rc == -EOPNOTSUPP) { if (rc == -EOPNOTSUPP)
key = NULL;
hfunc = NULL;
rc = 0; rc = 0;
}
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment