]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: fix ena_com_comp_status_to_errno() return value
authorArthur Kiyanovski <akiyano@amazon.com>
Fri, 22 May 2020 09:08:55 +0000 (12:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 21:12:48 +0000 (14:12 -0700)
commit94573120d057b10fe979ce7b66d0e005dad62f2a
tree887ef5ee10bea9d76d3d7a5525fc5df8e2a07238
parent63e7bbb8c43ad3090932d046315ab01b18aa43ce
net: ena: fix ena_com_comp_status_to_errno() return value

Default return value should be -EINVAL since the input
in this case was unexpected.
Also remove the now redundant check in the beginning
of the function.

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