Skip to content

Commit

Permalink
mac80211: fix "‘ret’ may be used uninitialized" warning
Browse files Browse the repository at this point in the history
net/mac80211/ht.c: In function ‘ieee80211_start_tx_ba_session’:
net/mac80211/ht.c:472: warning: ‘ret’ may be used uninitialized in this function

Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Jan 13, 2009
1 parent 51e9915 commit 85b9e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ int ieee80211_start_tx_ba_session(struct ieee80211_hw *hw, u8 *ra, u16 tid)
struct ieee80211_sub_if_data *sdata;
u16 start_seq_num;
u8 *state;
int ret;
int ret = 0;

if ((tid >= STA_TID_NUM) || !(hw->flags & IEEE80211_HW_AMPDU_AGGREGATION))
return -EINVAL;
Expand Down

0 comments on commit 85b9e4f

Please sign in to comment.