]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix error return code in adap_init0()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 28 Mar 2018 12:51:09 +0000 (12:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 13:44:29 +0000 (09:44 -0400)
commit6b57dfde8437c97e6369fdef0a0aaf6701d359a9
treeeb8bf025c8b51778548d7c4aa1cb3b16416d7061
parent170d69a6dffef2f678301eac8fa0a4c6c356f10d
cxgb4: fix error return code in adap_init0()

Fix to return a negative error code from the hash filter init error
handling case instead of 0, as done elsewhere in this function.

Fixes: a00a02cbf46a ("cxgb4: initialize hash-filter configuration")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c