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)
commitadb3fb388933e03c61e941bce4a0dac4a6ae98c0
tree887ef5ee10bea9d76d3d7a5525fc5df8e2a07238
parentf391503b7a11c6ca033a6e916cee23b85e21a1f1
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