All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: rtl819x_TSProc.c: Initializer entry defined twice
@ 2014-09-13  2:10 Cheng-Wei Lee
  2014-09-13  8:58 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Cheng-Wei Lee @ 2014-09-13  2:10 UTC (permalink / raw)
  To: Greg Kroah-Hartman, peter.p.waskiewicz.jr, Joe Perches
  Cc: devel, linux-kernel

This patch fixs the sparse warning in rtl819x_TSProc.c:
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:244:58: warning:
Initializer entry defined twice
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:244:61:   also defined
here

Signed-off-by: Quentin Lee <lee.rhapsody@gmail.com>
---
 .../staging/rtl8192u/ieee80211/rtl819x_TSProc.c    |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c
b/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c
index c451410..acaa723 100644
--- a/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c
+++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c
@@ -241,7 +241,7 @@ static PTS_COMMON_INFO SearchAdmitTRStream(struct
ieee80211_device *ieee,
 {
  //DIRECTION_VALUE dir;
  u8 dir;
- bool search_dir[4] = {0, 0, 0, 0};
+ bool search_dir[4] = {0};
  struct list_head *psearch_list; //FIXME
  PTS_COMMON_INFO pRet = NULL;
  if(ieee->iw_mode == IW_MODE_MASTER) //ap mode
-- 
1.7.9.5

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

* Re: [PATCH] staging: rtl819x_TSProc.c: Initializer entry defined twice
  2014-09-13  2:10 [PATCH] staging: rtl819x_TSProc.c: Initializer entry defined twice Cheng-Wei Lee
@ 2014-09-13  8:58 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2014-09-13  8:58 UTC (permalink / raw)
  To: Cheng-Wei Lee
  Cc: Greg Kroah-Hartman, peter.p.waskiewicz.jr, Joe Perches, devel,
	linux-kernel

On Sat, Sep 13, 2014 at 10:10:26AM +0800, Cheng-Wei Lee wrote:
> This patch fixs the sparse warning in rtl819x_TSProc.c:
> drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:244:58: warning:
> Initializer entry defined twice
> drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:244:61:   also defined
> here
> 

This is a false positive in Sparse.  Complain to the Sparse devs
instead.

regards,
dan carpenter


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

end of thread, other threads:[~2014-09-13  8:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-13  2:10 [PATCH] staging: rtl819x_TSProc.c: Initializer entry defined twice Cheng-Wei Lee
2014-09-13  8:58 ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.