Skip to content

Commit f336d0b

Browse files
Jiapeng Chongdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 53d5fa9 commit f336d0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/myricom/myri10ge/myri10ge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3815,6 +3815,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
38153815
dev_err(&pdev->dev,
38163816
"invalid sram_size %dB or board span %ldB\n",
38173817
mgp->sram_size, mgp->board_span);
3818+
status = -EINVAL;
38183819
goto abort_with_ioremap;
38193820
}
38203821
memcpy_fromio(mgp->eeprom_strings,

0 commit comments

Comments
 (0)