Skip to content

Commit

Permalink
airo: correct improper initialization of local variable
Browse files Browse the repository at this point in the history
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Feb 27, 2009
1 parent 4aa188e commit bc8263f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -4727,7 +4727,7 @@ static int proc_stats_rid_open( struct inode *inode,
StatsRid stats;
int i, j;
__le32 *vals = stats.vals;
int len = le16_to_cpu(stats.len);
int len;

if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL)
return -ENOMEM;
Expand All @@ -4738,6 +4738,7 @@ static int proc_stats_rid_open( struct inode *inode,
}

readStatsRid(apriv, &stats, rid, 1);
len = le16_to_cpu(stats.len);

j = 0;
for(i=0; statsLabels[i]!=(char *)-1 && i*4<len; i++) {
Expand Down

0 comments on commit bc8263f

Please sign in to comment.