]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc94f0b63283f30391c0dd0a50839b811bf0bce04
treeb032bd02daad20faebfe811895e7b270e50a994a
parent26f6638f29c0ffdeec1524566ed5eee6c835b754
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 3fbde083 "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