Catégorie : Linux

drivers/net/ethernet/sun/sungem.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function gem_init_one() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to err_out_free_consistent:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …

Lire la suite

drivers/net/ethernet/sun/niu.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function niu_pci_init_one() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to err_out_free_res:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …

Lire la suite

drivers/net/ethernet/renesas/sh_eth.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function sh_eth_drv_probe() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to out_release:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …

Lire la suite

drivers/net/ethernet/natsemi/xtsonic.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function sonic_probe1() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to out:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …

Lire la suite

drivers/net/ethernet/amd/au1000_eth.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function au1000_probe() return 0 for success and negative value for most of its internal tests failures. There are exceptions that are error cases going to err_out:. For this cases, the function abort its success execution path, but returns non negative value, making it dificult for a caller function to …

Lire la suite

drivers/net/ethernet/amd/amd8111e.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function amd8111e_probe_one() return 0 for success and negative value for most of its internal tests failures. There are two exceptions that are error cases going to err_free_reg:. For this two cases, the function abort its success execution path, but returns non negative value, making it dificult for a caller …

Lire la suite

drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function qlcnic_probe() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to err_out_free_netdev:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …

Lire la suite

drivers/net/irda/sh_sir.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function sh_sir_probe() return 0 for success and negative value for most of its internal tests failures. There are two exceptions that are error cases going to err_mem_*:. For this two cases, the function abort its success execution path, but returns non negative value, making it dificult for a caller …

Lire la suite

drivers/net/irda/sa1100_ir.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function sa1100_irda_probe() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to err_mem_4:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …

Lire la suite

drivers/net/irda/pxaficp_ir.c: fix error return code

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function pxa_irda_probe() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to err_mem_3:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …

Lire la suite