]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Remove unnecessary ksize() call
authorMichael Buesch <mb@bu3sch.de>
Sat, 25 Apr 2009 20:28:55 +0000 (22:28 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:14:42 +0000 (15:14 -0400)
commit50ed60397c238d9b5b2134818190012cf49cd335
tree9a6b4d78fd3b81e321c2ee507b0e491dbde90baf
parent118502f78a7977c972d9a0bea2fb56807eca1ac7
cfg80211: Remove unnecessary ksize() call

This removes an unnecessary ksize() call. krealloc() will do this
test internally and won't perform any allocation if the space is
already sufficient to hold the data.
So remove the redundant check.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/scan.c