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
..
2013-07-13 17:42:22 -07:00
2013-05-14 13:02:30 -07:00
2013-05-28 13:11:01 -07:00
2013-05-28 13:11:01 -07:00
2013-05-28 21:58:54 -07:00
2013-06-13 02:36:09 -07:00
2013-06-24 01:46:01 -07:00
2013-07-09 18:24:39 -07:00
2013-07-06 18:12:47 -07:00
2013-05-28 13:11:01 -07:00
2013-05-28 13:11:01 -07:00
2013-07-03 15:32:58 -07:00
2013-07-12 16:10:34 -07:00
2013-03-22 10:31:16 -04:00
2013-03-17 14:35:13 -04:00
2013-06-13 02:36:09 -07:00
2013-07-12 16:09:14 -07:00
2013-03-25 12:23:41 -04:00
2013-03-28 01:20:42 -04:00
2013-05-28 13:11:01 -07:00
2013-07-12 16:15:56 -07:00
2013-07-12 16:29:54 -07:00
2013-05-28 13:11:01 -07:00
2013-06-13 02:36:09 -07:00
2013-05-28 13:11:01 -07:00
2013-06-26 15:15:54 -07:00
2013-07-02 16:33:25 -07:00
2013-01-11 11:40:01 -08:00
2013-04-07 16:28:01 -04:00
2013-08-12 18:08:34 +02:00
2013-04-30 03:55:20 -04:00
2013-05-27 22:50:59 -07:00
2013-07-03 14:55:13 -07:00
2013-05-28 13:11:01 -07:00
2013-06-27 22:44:16 -07:00
2013-06-13 02:36:09 -07:00
2013-06-14 13:45:10 +02:00
2013-07-01 13:19:43 -07:00
2013-06-19 16:49:39 -07:00
2013-06-13 02:36:09 -07:00
2013-06-13 02:36:09 -07:00
2013-08-15 18:17:05 +02:00
2013-06-13 02:36:09 -07:00
2013-02-21 12:05:51 -08:00
2013-07-11 13:01:07 -07:00
2013-07-09 12:49:56 -07:00
2013-07-14 11:42:26 -07:00
2013-07-11 17:03:36 -07:00
2013-07-09 18:24:39 -07:00
2013-06-23 23:51:48 -07:00
2013-08-12 14:11:37 +02:00
2013-07-01 18:15:25 -07:00
2013-06-26 13:23:13 -07:00
2013-06-06 11:52:14 -07:00
2013-07-09 18:24:39 -07:00
2013-05-27 22:50:59 -07:00
2013-07-10 17:08:27 -07:00
2012-11-18 20:32:45 -05:00