Browse Source

wimax: fix warning caused by not checking retval of rfkill_set_hw_state()

Caused by an API update. The return value can be safely ignored, as
there is notthing we can do with it.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
imx_3.10.17_1.0.0_ga
Inaky Perez-Gonzalez 11 years ago
parent
commit
d2f4c10544
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      net/wimax/op-rfkill.c

+ 2
- 1
net/wimax/op-rfkill.c View File

@ -113,7 +113,8 @@ void wimax_report_rfkill_hw(struct wimax_dev *wimax_dev,
else
wimax_state = WIMAX_ST_RADIO_OFF;
rfkill_set_hw_state(wimax_dev->rfkill, state == WIMAX_RF_OFF);
result = rfkill_set_hw_state(wimax_dev->rfkill,
state == WIMAX_RF_OFF);
__wimax_state_change(wimax_dev, wimax_state);
}


Loading…
Cancel
Save