mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Wendy Yuan-Hsin Chen(陳元馨)" <yhchen@faraday-tech.com>
To: "Sebastian Andrzej Siewior" <bigeasy@linutronix.de>
Cc: "Felipe Balbi" <balbi@ti.com>,
	"Greg Kroah-Hartman" <gregkh@suse.de>,
	<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	"Joe Perches" <joe@perches.com>
Subject: RE: [PATCH 4/5] fusb300_udc: Add missing breaks in switch/case
Date: Thu, 14 Jul 2011 16:36:39 +0800	[thread overview]
Message-ID: <B3F95056718EDE47B73D925D2FF34506782BC2@EX1.faraday.com.tw> (raw)
In-Reply-To: <20110714080830.GA7149@linutronix.de>

 

-----Original Message-----
From: Sebastian Andrzej Siewior [mailto:bigeasy@linutronix.de] 
Sent: Thursday, July 14, 2011 4:09 PM
To: Wendy Yuan-Hsin Chen(陳元馨)
Cc: Felipe Balbi; Greg Kroah-Hartman; linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org; Joe Perches
Subject: Re: [PATCH 4/5] fusb300_udc: Add missing breaks in switch/case

* Joe Perches | 2011-07-10 02:28:27 [-0700]:

>Signed-off-by: Joe Perches <joe@perches.com>
>---
> drivers/usb/gadget/fusb300_udc.c |    3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
>diff --git a/drivers/usb/gadget/fusb300_udc.c 
>b/drivers/usb/gadget/fusb300_udc.c
>index 06353e7..453bc0f 100644
>--- a/drivers/usb/gadget/fusb300_udc.c
>+++ b/drivers/usb/gadget/fusb300_udc.c
>@@ -688,10 +688,13 @@ static void fusb300_cmp_dbg_fifo(struct fusb300_ep *ep,
> 	switch (length % 4) {
> 	case 1:
> 		golden_value = *tmp;
>+		break;
> 	case 2:
> 		golden_value = *tmp | *(tmp + 1) << 8;
>+		break;
> 	case 3:
> 		golden_value = *tmp | *(tmp + 1) << 8 | *(tmp + 2) << 16;
>+		break;
> 	default:
> 		break;
> 

That is in an #if 0 block. Maybe we should remove the #if 0? Yuan-Hsin?

It's ok to remove the #if 0. But the warning will occur while compling.

Sebastian

Yuan-Hsin

********************* Confidentiality Notice ************************
This electronic message and any attachments may contain
confidential and legally privileged information or
information which is otherwise protected from disclosure.
If you are not the intended recipient,please do not disclose
the contents, either in whole or in part, to anyone,and
immediately delete the message and any attachments from
your computer system and destroy all hard copies.
Thank you for your cooperation.
***********************************************************************


  reply	other threads:[~2011-07-14  9:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-10  9:28 [PATCH 0/5] treewide: " Joe Perches
2011-07-10  9:28 ` [PATCH 1/5] gpio-tps65910.c: " Joe Perches
2011-07-10 10:47   ` Grant Likely
2011-07-10  9:28 ` [PATCH 2/5] tps65910-irq: " Joe Perches
2011-07-10  9:28 ` [PATCH 3/5] ath5k: " Joe Perches
2011-07-11 15:50   ` [ath5k-devel] " Pavel Roskin
2011-07-11 21:24   ` Nick Kossifidis
2011-07-10  9:28 ` [PATCH 4/5] fusb300_udc: " Joe Perches
2011-07-11  6:39   ` Felipe Balbi
2011-07-14  8:08   ` Sebastian Andrzej Siewior
2011-07-14  8:36     ` Wendy Yuan-Hsin Chen(陳元馨) [this message]
2011-07-14 10:36       ` Sebastian Andrzej Siewior
2011-07-14 13:28         ` Wendy Yuan-Hsin Chen(陳元馨)
2011-07-18  8:36           ` Felipe Balbi
2011-07-18 12:54             ` Wendy Yuan-Hsin Chen(陳元馨)
2011-07-19 19:47               ` [PATCH] usb/fusb300: remove #if 0 block Sebastian Andrzej Siewior
2011-07-26 14:52                 ` Felipe Balbi
2011-07-10  9:28 ` [PATCH 5/5] dbri: Add missing breaks in switch/case Joe Perches
2011-07-10 14:36   ` Joe Perches

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=B3F95056718EDE47B73D925D2FF34506782BC2@EX1.faraday.com.tw \
    --to=yhchen@faraday-tech.com \
    --cc=balbi@ti.com \
    --cc=bigeasy@linutronix.de \
    --cc=gregkh@suse.de \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®