]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
wireless: a global static to local static improvement
authorDenis ChengRq <crquan@gmail.com>
Mon, 22 Sep 2008 18:35:37 +0000 (02:35 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Sep 2008 20:18:04 +0000 (16:18 -0400)
commit638af07386972861272ed9d0cff01cad528fdceb
tree325176c8c46a7557531b571c1e897170d1073878
parentacaf908d408ccd49f13aeb46cbd4428a4db174d1
wireless: a global static to local static improvement

There are two improvements in this simple patch:
1. wiphy_counter is a static var only used in one function, so
   can use local static instead of global static;
2. wiphy_counter wrap handling killed one comparision;

Signed-off-by: Denis ChengRq <crquan@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/core.c