aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wimax/i2400m/control.c')
-rw-r--r--drivers/net/wimax/i2400m/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/control.c b/drivers/net/wimax/i2400m/control.c
index 07308686dbcf..8fe70e75d030 100644
--- a/drivers/net/wimax/i2400m/control.c
+++ b/drivers/net/wimax/i2400m/control.c
@@ -263,7 +263,7 @@ int i2400m_msg_check_status(const struct i2400m_l3l4_hdr *l3l4_hdr,
263 263
264 if (status == 0) 264 if (status == 0)
265 return 0; 265 return 0;
266 if (status > ARRAY_SIZE(ms_to_errno)) { 266 if (status >= ARRAY_SIZE(ms_to_errno)) {
267 str = "unknown status code"; 267 str = "unknown status code";
268 result = -EBADR; 268 result = -EBADR;
269 } else { 269 } else {