linux/net/rfkill
Luis Henriques dee08ab83d net: rfkill: Do not ignore errors from regulator_enable()
Function regulator_enable() may return an error that has to be checked.
This patch changes function rfkill_regulator_set_block() so that it checks
for the return code.  Also, rfkill_data->reg_enabled is set to 'true' only
if there is no error.

This fixes the following compilation warning:

net/rfkill/rfkill-regulator.c:43:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-08-15 18:17:05 +02:00
..
core.c rfkill: Add NFC to the list of supported radios 2013-04-12 16:54:38 +02:00
input.c rfkill: don't use [delayed_]work_pending() 2012-12-28 13:40:16 -08:00
Kconfig net: rfkill: add generic gpio rfkill driver 2011-05-19 13:53:54 -04:00
Makefile net: rfkill: add generic gpio rfkill driver 2011-05-19 13:53:54 -04:00
rfkill-gpio.c rfkill: fix error return code in rfkill_gpio_probe() 2013-04-22 15:42:18 +02:00
rfkill-regulator.c net: rfkill: Do not ignore errors from regulator_enable() 2013-08-15 18:17:05 +02:00
rfkill.h