From patchwork Fri Oct 2 22:53:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 289048 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30D7AC35257 for ; Fri, 2 Oct 2020 22:47:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE3F620796 for ; Fri, 2 Oct 2020 22:47:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601678850; bh=VtJgOLqz1ljDZRJ0+tvKp6/oomcXRGsEABPYY9e8m4k=; h=Date:From:To:Cc:Subject:List-ID:From; b=Ogc/WR410mMUzSVi85FQepCzmn04KzgmZZx4BQMw0st/Bx5aFh75t2p39VSFCJRYS yjL898QvFsbCDJMh32Th4Tji0LLoCoP3nz3+oI2j2sk6MJrsd9yxfaDziakpREFr5F HgkPpJCYM5XDO3OmyO23bpVZQL3N394uJnM2Heac= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725770AbgJBWr1 (ORCPT ); Fri, 2 Oct 2020 18:47:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:33924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgJBWr1 (ORCPT ); Fri, 2 Oct 2020 18:47:27 -0400 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 19EA1206C9; Fri, 2 Oct 2020 22:47:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601678846; bh=VtJgOLqz1ljDZRJ0+tvKp6/oomcXRGsEABPYY9e8m4k=; h=Date:From:To:Cc:Subject:From; b=KV0gQshzp3hCTERVt009h/VFNs8MUQubEGW8fY3BiNYF7lnsQJE+X4BqOcM6k4Cey E10i+dxlAGrJk5XKuHu8/GNyqSh84zfcqiKHTrTW0QK2UQ80Em/w+MaDYKcrYoRDfZ 4ObPMjtwDlO8i76vZ66Idxl4aY+KqQttPdBllNLY= Date: Fri, 2 Oct 2020 17:53:15 -0500 From: "Gustavo A. R. Silva" To: Oliver Neukum , "David S. Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH][next] usbnet: Use fallthrough pseudo-keyword Message-ID: <20201002225315.GA1484@embeddedor> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Replace // FALLTHROUGH comment with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/net/usb/usbnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 2b2a841cd938..bf6c58240bd4 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -597,7 +597,7 @@ static void rx_complete (struct urb *urb) case -EPIPE: dev->net->stats.rx_errors++; usbnet_defer_kevent (dev, EVENT_RX_HALT); - // FALLTHROUGH + fallthrough; /* software-driven interface shutdown */ case -ECONNRESET: /* async unlink */