public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Bin Liu <b-liu@ti.com>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Gustavo A. R. Silva" <garsilva@embeddedor.com>
Subject: [PATCH v2] usb: musb: add code comment for clarification
Date: Tue, 14 Feb 2017 12:20:39 -0600	[thread overview]
Message-ID: <20170214182039.GA3379@embeddedgus> (raw)
In-Reply-To: <20170214121202.Horde.qAfQoW59o5zs8CWtQR4bQyI@gator4166.hostgator.com>

Add code comment to make it clear that the fall-through is intentional.
Read the link for more details: https://lkml.org/lkml/2017/2/9/292

Addresses-Coverity-ID: 1397608
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
Changes in v2:
 Fix tabs and line-wrapping in previous patch.

 drivers/usb/musb/musb_core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 892088f..d8bae6c 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1869,6 +1869,7 @@ static void musb_pm_runtime_check_session(struct musb *musb)
 
 			return;
 		}
+		/* fall through */
 	case MUSB_QUIRK_A_DISCONNECT_19:
 		if (musb->quirk_retries--) {
 			musb_dbg(musb,
-- 
2.5.0

  reply	other threads:[~2017-02-14 18:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20170210035654.GA11033@embeddedgus>
2017-02-10 13:22 ` [PATCH] drivers: usb: musb: add code comment for clarification Bin Liu
2017-02-11  0:57   ` [PATCH] " Gustavo A. R. Silva
2017-02-14 17:31     ` Greg KH
2017-02-14 18:12       ` Gustavo A. R. Silva
2017-02-14 18:20         ` Gustavo A. R. Silva [this message]
2017-02-14 18:25           ` [PATCH v2] " Greg KH
2017-02-14 18:54             ` Bin Liu

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=20170214182039.GA3379@embeddedgus \
    --to=garsilva@embeddedor.com \
    --cc=b-liu@ti.com \
    --cc=gregkh@linuxfoundation.org \
    --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