public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix sparse message rtl8192u
@ 2010-11-24 21:41 david.chosrova
  2010-11-25  5:36 ` Dan Carpenter
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: david.chosrova @ 2010-11-24 21:41 UTC (permalink / raw)
  To: kernel-janitors



Hello,

Fix sparse message:

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


if ENABLE_DOT11D is enabled eqMacAddr is defined twice.

Signed-off-by: David Chosrova <david.chosrova@libertysurf.fr>




diff --git a/drivers/staging/rtl8192u/r8192U_core.c
b/drivers/staging/rtl8192u/r8192U_core.c
index 494f180..4a4a747 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -242,10 +242,12 @@ static void rtl819x_set_channel_map(u8 channel_plan,
struct r8192_priv* priv)
        }
        return;
 }
-#endif
+#else

 #define eqMacAddr(a,b) ( ((a)[0]=(b)[0] && (a)[1]=(b)[1] && (a)[2]=(b)[2] &&
(a)[3]=(b)[3] && (a)[4]=(b)[4] && (a)[5]=(b)[5]) ? 1:0 )

+#endif
+
 #define        rx_hal_is_cck_rate(_pdrvinfo)\
                        (_pdrvinfo->RxRate = DESC90_RATE1M ||\
                        _pdrvinfo->RxRate = DESC90_RATE2M ||\



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-30 15:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-24 21:41 [PATCH] Fix sparse message rtl8192u david.chosrova
2010-11-25  5:36 ` Dan Carpenter
2010-11-25  9:39 ` david chosrova
2010-11-25 10:04 ` Dan Carpenter
2010-11-27 22:37 ` David Chosrova
2010-11-28 21:19 ` Dan Carpenter
2010-11-30 15:35   ` [PATCH] Staging: rtl8192u: remove dead code to disable dot11d David Chosrova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox