]> git.baikalelectronics.ru Git - kernel.git/commit
staging/rtl8192e: Erroneous return codes (types and values)
authorDominique van den Broeck <domdevlin@free.fr>
Sun, 27 Apr 2014 17:11:15 +0000 (19:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:21:59 +0000 (20:21 -0400)
commita3a87d55e18a2e494159a1ebc14533cd3f474762
tree2e18e19e5c86b0172963611aac2323fb0ab9e902
parentdf02c550fa2f6e8c3ac28433d1d4d828afaadec0
staging/rtl8192e: Erroneous return codes (types and values)

This function returns a bool, that is supposed to be false when something
goes wrong. It's assumed this way by its lone calling function (which is
SetRFPowerState8190(), line 1445 of rtl8192e/rtl8192e/r8192E_phy.c)

Despite of this, this procedure returns non-null enumerations values or
negative codes instead. This patch fixes this.

Signed-off-by: Dominique van den Broeck <domdevlin@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c