wl12xx: change type from u8 to int
authorDan Carpenter <error27@gmail.com>
Mon, 7 Feb 2011 16:47:42 +0000 (19:47 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 22 Feb 2011 16:06:35 +0000 (18:06 +0200)
ret is used to store int types.  Using an u8 will break the error
handling.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/init.c

index 62dc9839dd31bf088f7a729c765f1497d7ddb83b..6072fe457135ab4a4e4b2715d8ddf499491fe73b 100644 (file)
@@ -483,7 +483,7 @@ static void wl1271_check_ba_support(struct wl1271 *wl)
 static int wl1271_set_ba_policies(struct wl1271 *wl)
 {
        u8 tid_index;
-       u8 ret = 0;
+       int ret = 0;
 
        /* Reset the BA RX indicators */
        wl->ba_rx_bitmap = 0;