]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: remove some stack variables in trigger_scan and start_sched_scan
authorLuciano Coelho <coelho@ti.com>
Wed, 18 May 2011 08:42:03 +0000 (11:42 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 May 2011 17:54:17 +0000 (13:54 -0400)
commit7f14a8dda323c742f80edf278ed8c72f8ed303ba
treee62d1019851368daebb5cf99e1a6c25c2967f2df
parent6c7d5b48a0e1fd47748e8e83688a3b0a5be4434b
nl80211: remove some stack variables in trigger_scan and start_sched_scan

Some stack variables (name *ssid and *channel) are only used to define
the size of the memory block that needs to be allocated for the
request structure in the nl80211_trigger_scan() and
nl80211_start_sched_scan() functions.

This is unnecessary because the sizes of the actual elements in the
structure can be used instead.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c