net: ena: Fix error return code in ena_device_init()
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 15 Aug 2016 22:51:04 +0000 (22:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 23:16:11 +0000 (16:16 -0700)
commit6e22066fd02b675260b980b3e42b7d616a9839c5
tree513ce65b81f7266748641a84489d46197f3a4e69
parent557bc7d44d52d52374bc72e9cc3b0beb41026886
net: ena: Fix error return code in ena_device_init()

Fix to return a negative error code from the invalid dma width
error handling case instead of 0.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c