All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cheng-Wei Lee <lee.rhapsody@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	peter.p.waskiewicz.jr@intel.com, Joe Perches <joe@perches.com>
Cc: devel <devel@driverdev.osuosl.org>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] staging: rtl819x_TSProc.c: Initializer entry defined twice
Date: Sat, 13 Sep 2014 10:10:26 +0800	[thread overview]
Message-ID: <CAJKoSVTOzFjq=aZwzQC01AK=DmEDSK75ax+fUL=px96hhwibAQ@mail.gmail.com> (raw)

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

             reply	other threads:[~2014-09-13  2:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-13  2:10 Cheng-Wei Lee [this message]
2014-09-13  8:58 ` [PATCH] staging: rtl819x_TSProc.c: Initializer entry defined twice Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJKoSVTOzFjq=aZwzQC01AK=DmEDSK75ax+fUL=px96hhwibAQ@mail.gmail.com' \
    --to=lee.rhapsody@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter.p.waskiewicz.jr@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.