aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/fw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wimax/i2400m/fw.c')
-rw-r--r--drivers/net/wimax/i2400m/fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/fw.c b/drivers/net/wimax/i2400m/fw.c
index 7cbd7d231e11..d09e44970e63 100644
--- a/drivers/net/wimax/i2400m/fw.c
+++ b/drivers/net/wimax/i2400m/fw.c
@@ -1268,7 +1268,7 @@ int i2400m_fw_check(struct i2400m *i2400m, const void *bcf, size_t bcf_size)
1268 size_t leftover, offset, header_len, size; 1268 size_t leftover, offset, header_len, size;
1269 1269
1270 leftover = top - itr; 1270 leftover = top - itr;
1271 offset = itr - (const void *) bcf; 1271 offset = itr - bcf;
1272 if (leftover <= sizeof(*bcf_hdr)) { 1272 if (leftover <= sizeof(*bcf_hdr)) {
1273 dev_err(dev, "firmware %s: %zu B left at @%zx, " 1273 dev_err(dev, "firmware %s: %zu B left at @%zx, "
1274 "not enough for BCF header\n", 1274 "not enough for BCF header\n",