Staging: rtl8192su, rtl8192u: use min_t() in store_debug_level()
authorSimon Horman <horms@verge.net.au>
Wed, 23 Dec 2009 08:54:54 +0000 (19:54 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:38 +0000 (16:42 -0800)
commitcf137d5c49379c5f05fba40baf1535b611410ec0
treee42e65e4f0455e27f13a7a30647f8cde100b88b8
parent27b93f80e47a49a0584a4c8fb58bc44f9e026256
Staging: rtl8192su, rtl8192u: use min_t() in store_debug_level()

sizeof() returns a size_t but the other types involved
are unsigned long, so using min() results in a warning.

As sizeof() is called on an 11 character buffer defined
immediately above unsigned long is obviously wide enough
for the result.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192su/ieee80211/ieee80211_module.c
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c