b43: use temporary rate_index for error checking
authorJohannes Berg <johannes.berg@intel.com>
Fri, 13 Jul 2012 08:57:36 +0000 (10:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Jul 2012 19:11:31 +0000 (15:11 -0400)
The mac80211 rate_index changed to be a u8, so
can't hold the negative error value properly.
Use a temporary variable for error checking.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found