]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: rtl8192u: remove dead code to disable dot11d
authorDavid Chosrova <dada2372@gmail.com>
Mon, 29 Nov 2010 20:50:48 +0000 (21:50 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 1 Dec 2010 22:51:16 +0000 (14:51 -0800)
commit0e7a3e7a746b5dc6ccf9896e882441c4fdbfd09a
treea9c9e650897024df78cdee67e86d590f08b6282f
parent2894c6cd0ea84c30fc028ba92f8e61fbe7971e65
Staging: rtl8192u: remove dead code to disable dot11d

This patch removes all the ENABLE_DOT11D ifdefs.
It is always defined for driver. DOT11D has to do with regulatory domains.

What prompted this patch was a warning message in Sparse.

drivers/staging/rtl8192u/r8192U_core.c:247:1: warning: "eqMacAddr"
redefined in file included from drivers/staging/rtl8192u/:81:81:
drivers/staging/rtl8192u/dot11d.h:35:1: warning: this is the location
of the previous definition

Now there are no ifdefs around dot11d.h it made no sense to have this
second definition, so I removed that macro as well. ( Thanks Dan ;-) ).

Acked-by. Dan Carpenter <error27@gmail.com>
Signed-off-by: David Chosrova <dada2372@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 files changed:
drivers/staging/rtl8192u/Makefile
drivers/staging/rtl8192u/dot11d.h
drivers/staging/rtl8192u/ieee80211/Makefile
drivers/staging/rtl8192u/ieee80211/dot11d.c
drivers/staging/rtl8192u/ieee80211/dot11d.h
drivers/staging/rtl8192u/ieee80211/ieee80211.h
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c
drivers/staging/rtl8192u/r8192U_core.c
drivers/staging/rtl8192u/r8192U_wx.c
drivers/staging/rtl8192u/r819xU_phy.c