]> git.baikalelectronics.ru Git - kernel.git/commit
cavium: Fix return values of the probe function
authorZheyu Ma <zheyuma97@gmail.com>
Mon, 18 Oct 2021 14:32:57 +0000 (14:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 12:09:57 +0000 (13:09 +0100)
commitc69b2f46876825c726bd8a97c7fa852d8932bc32
tree6702ff70c0a2d11b33ba0c38260abd3f1bf6cdea
parente211210098cb7490db2183d725f5c0f10463a704
cavium: Fix return values of the probe function

During the process of driver probing, the probe function should return < 0
for failure, otherwise, the kernel will treat value > 0 as success.

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c