Skip to contentSkip to conversation

wl12xx: change type from u8 to int

PATCH Applied Dan Carpenter 2 participants 2 messages Feb 7, 2011 – Feb 23, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wl12xx: change type from u8 to int

ret is used to store int types. Using an u8 will break the error handling.

drivers/net/wireless/wl12xx/init.c +1 -1
index 70b3dc8..e430b2a 100644
@@ -470,7 +470,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;