hinic: uninitialized variable in hinic_api_cmd_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Aug 2017 10:47:39 +0000 (13:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 04:47:11 +0000 (21:47 -0700)
commit256fbe111218ccc3de4aff1aab44c9b08cd06c92
tree0b23ebfecedddbfd2229c40a481986842f8c1852
parent43cee2d2465cab8289dc1d9206b90fcf975a604f
hinic: uninitialized variable in hinic_api_cmd_init()

We never set the error code in this function.

Fixes: eabf0fad81d5 ("net-next/hinic: Initialize api cmd resources")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c