summaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/op-rfkill.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wimax/i2400m/op-rfkill.c')
-rw-r--r--drivers/net/wimax/i2400m/op-rfkill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/op-rfkill.c b/drivers/net/wimax/i2400m/op-rfkill.c
index 487ec58cea46..43927b5d7ad6 100644
--- a/drivers/net/wimax/i2400m/op-rfkill.c
+++ b/drivers/net/wimax/i2400m/op-rfkill.c
@@ -54,8 +54,10 @@ int i2400m_radio_is(struct i2400m *i2400m, enum wimax_rf_state state)
/* state == WIMAX_RF_ON */
return i2400m->state != I2400M_SS_RF_OFF
&& i2400m->state != I2400M_SS_RF_SHUTDOWN;
- else
+ else {
BUG();
+ return -EINVAL; /* shut gcc warnings on certain arches */
+ }
}