OSDN Git Service

iwlegacy: fix error return code in il3945_pci_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 5 Jun 2013 02:16:33 +0000 (10:16 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 18:59:39 +0000 (14:59 -0400)
commitca3ae51396c049fcb9a93ded6f90ec81f7360ffa
treeb570c1cbeca9fa9a43abdbd79fb93bc6bd51822b
parentc9e2404c9ffcbb31b0bd1348be5fc7a4de6f90d6
iwlegacy: fix error return code in il3945_pci_probe()

Fix to return a negative error code in the il3945_hw_set_hw_params() error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/3945-mac.c