rtlwifi: Modify rtl_pci_init to return 0 on success
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 9 Feb 2012 19:48:25 +0000 (14:48 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 9 Feb 2012 19:49:37 +0000 (14:49 -0500)
commit12325280dfeba18164f9c47e226a40ab34e23ee7
treeb032bd02daad20faebfe811895e7b270e50a994a
parent2cfc6fc584a65db87935ca4e4d5e1ad89d5192ee
rtlwifi: Modify rtl_pci_init to return 0 on success

Fixes problem where caller would think routine succeeded when it failed
leading to divide by zero panic.

(This also reverts an earlier attempt, commit 42bc0c97 "rtlwifi: Return
correct failure code on error". -- JWL)

Signed-off-by: Simon Graham <simon.graham@virtualcomputer.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c