]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: myri10ge: Fix missing error code in myri10ge_probe()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 1 Jun 2021 11:04:51 +0000 (19:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2021 22:54:38 +0000 (15:54 -0700)
commit180731f9bc048b77596c7ad3e657170afc9014f5
treed11f812a0ca9b79551d5cc6d5ac7a70d838fea9d
parent1482c74fbf93c2cdc326557aaac4a3804bb133d7
ethernet: myri10ge: Fix missing error code in myri10ge_probe()

The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'status'.

Eliminate the follow smatch warning:

drivers/net/ethernet/myricom/myri10ge/myri10ge.c:3818 myri10ge_probe()
warn: missing error code 'status'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/myricom/myri10ge/myri10ge.c