diff options
author | Luciano Coelho <coelho@ti.com> | 2011-12-21 15:36:27 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-02-15 01:38:27 -0500 |
commit | 059625e757754459d8adb370e3d751abdd51723b (patch) | |
tree | f8e3f8a88bc210801816364c92b108360bc80d69 | |
parent | 12325280dfeba18164f9c47e226a40ab34e23ee7 (diff) |
wl1251: fix sparse warning
The wl1251 driver was generating the following warning:
drivers/net/wireless/wl1251/boot.c:467:21: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl1251/boot.c:467:21: expected unsigned int [unsigned] [assigned] [usertype] val
drivers/net/wireless/wl1251/boot.c:467:21: got restricted __le32 [usertype] <noident>
Fix this by removing one cpu_to_le32() call in the wrong place.
Signed-off-by: Luciano Coelho <coelho@ti.com>
-rw-r--r-- | drivers/net/wireless/wl1251/boot.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl1251/boot.c b/drivers/net/wireless/wl1251/boot.c index d729daf8e841..a2e5241382da 100644 --- a/drivers/net/wireless/wl1251/boot.c +++ b/drivers/net/wireless/wl1251/boot.c | |||
@@ -464,8 +464,6 @@ static int wl1251_boot_upload_nvs(struct wl1251 *wl) | |||
464 | val = (nvs_ptr[0] | (nvs_ptr[1] << 8) | 464 | val = (nvs_ptr[0] | (nvs_ptr[1] << 8) |
465 | | (nvs_ptr[2] << 16) | (nvs_ptr[3] << 24)); | 465 | | (nvs_ptr[2] << 16) | (nvs_ptr[3] << 24)); |
466 | 466 | ||
467 | val = cpu_to_le32(val); | ||
468 | |||
469 | wl1251_debug(DEBUG_BOOT, | 467 | wl1251_debug(DEBUG_BOOT, |
470 | "nvs write table 0x%x: 0x%x", | 468 | "nvs write table 0x%x: 0x%x", |
471 | nvs_start, val); | 469 | nvs_start, val); |