diff options
author | Zhang Changzhong <zhangchangzhong@huawei.com> | 2020-12-04 11:49:42 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-06 01:04:55 +0300 |
commit | 4de377b659035309ba48638d70f3150d5c67611f (patch) | |
tree | 2884c06ce84681e1f85b490c5d73e73b5a264049 /include | |
parent | 205704c618af0ab2366015d2281a3b0814d918a0 (diff) | |
download | linux-4de377b659035309ba48638d70f3150d5c67611f.tar.xz |
net: marvell: prestera: Fix error return code in prestera_port_create()
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: 501ef3066c89 ("net: marvell: prestera: Add driver for Prestera family ASIC devices")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/r/1607071782-34006-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions