Message ID | 20230427185936.923777-1-martin@kaiser.cx |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp475944vqo; Thu, 27 Apr 2023 12:09:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sIwDW51Iv+xRSnTpUhk/4OXkMUea/hzCa2mZ5NwYrgcHQa5DVjGl78sJAKJJOG60AmU4W X-Received: by 2002:a17:90b:17cc:b0:247:6a31:d59d with SMTP id me12-20020a17090b17cc00b002476a31d59dmr2982713pjb.1.1682622553296; Thu, 27 Apr 2023 12:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682622553; cv=none; d=google.com; s=arc-20160816; b=JTPb3w9XISFYQROmjQC3OFHWZAzXxwyKu52QTU5oWDlmMPqZup/g0lENAdnxFavcl4 naJjfADOt43Alr/9/IZ4XT5NHqzqyUbBbtwzNJDqf2V9gbQt5Yo1z5GxKqq585l4LVHm ThlCwpnFY1x33k96/YwR+BpK7TBNKX/jLsj2Mpp5+bmTmU7kep24nETWSpAu5JnYIEO1 Cw8BkRLLA12vZYhta/StiU4eEKZjinCnFPvU0y5Sbezp61QxPlXPhlS0lQhPA0FnmWau zTsv3ynX5vj22LPy6hROSOJPBLgpvW+D/C/Wh6AMCGQ09p8r9Wj7kUR6V264P+b3jKlQ 5M0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Qo2n0z1mWRxNF/3yBCjKhTRw66BaFZNGEZGBhrIjzN0=; b=sQAug+RE01iH80G9RymypbHrNldmSKIkXHdwirY/zJKe/uHuDFUzJ7qaL5AvjxSIyQ cyH5uNZtSorhGY/MAwR9uDxjBDunJfl4/g67b67ln5TXU1A9+BJZh5NwnNAVohfpPpUp Xx84wfVdIs9anRdKHID9+Tz8ql2KSYFOM7ALZPtccQCYriWIasSI/B0l6axiJ5Ux6lvV CV7jgMnyiMnpEbCn/Qk4qS1qGAna3pnhp5ClzcNY6Zjf+OUvTz69qy1uXKOMaRXZagYV 8PsGbDkpTGwYznjxUe8M3Gy5sEba/esVhtuySuET3M3eG0HMDDRPVX/x8Z1kRz1kkLk0 c/lQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a63f110000000b0051ba1651735si15987387pgi.186.2023.04.27.12.08.12; Thu, 27 Apr 2023 12:09:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244346AbjD0TAY (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Thu, 27 Apr 2023 15:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjD0TAX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Apr 2023 15:00:23 -0400 X-Greylist: delayed 358 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 27 Apr 2023 12:00:22 PDT Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1E7340C4 for <linux-kernel@vger.kernel.org>; Thu, 27 Apr 2023 12:00:22 -0700 (PDT) Received: from ipservice-092-217-081-249.092.217.pools.vodafone-ip.de ([92.217.81.249] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <martin@kaiser.cx>) id 1ps6qZ-0003Us-CY; Thu, 27 Apr 2023 21:00:03 +0200 From: Martin Kaiser <martin@kaiser.cx> To: Jes Sorensen <Jes.Sorensen@gmail.com>, Kalle Valo <kvalo@kernel.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Martin Kaiser <martin@kaiser.cx>, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] wifi: rtl8xxxu: (trivial) remove unnecessary return Date: Thu, 27 Apr 2023 20:59:36 +0200 Message-Id: <20230427185936.923777-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764357626401317976?= X-GMAIL-MSGID: =?utf-8?q?1764357626401317976?= |
Series |
wifi: rtl8xxxu: (trivial) remove unnecessary return
|
|
Commit Message
Martin Kaiser
April 27, 2023, 6:59 p.m. UTC
Remove a return statement at the end of a void function.
This fixes a checkpatch warning.
WARNING: void function return statements are not generally useful
6206: FILE: ./drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:6206:
+ return;
+}
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 1 -
1 file changed, 1 deletion(-)
Comments
> -----Original Message----- > From: Martin Kaiser <martin@kaiser.cx> > Sent: Friday, April 28, 2023 3:00 AM > To: Jes Sorensen <Jes.Sorensen@gmail.com>; Kalle Valo <kvalo@kernel.org>; David S. Miller > <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni > <pabeni@redhat.com> > Cc: Martin Kaiser <martin@kaiser.cx>; linux-wireless@vger.kernel.org; netdev@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: [PATCH] wifi: rtl8xxxu: (trivial) remove unnecessary return > > Remove a return statement at the end of a void function. > > This fixes a checkpatch warning. > > WARNING: void function return statements are not generally useful > 6206: FILE: ./drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:6206: > + return; > +} > > Signed-off-by: Martin Kaiser <martin@kaiser.cx> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> > --- > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > index fd8c8c6d53d6..7e7bb11231e3 100644 > --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > @@ -6281,7 +6281,6 @@ static void rtl8xxxu_rx_complete(struct urb *urb) > cleanup: > usb_free_urb(urb); > dev_kfree_skb(skb); > - return; > } > > static int rtl8xxxu_submit_rx_urb(struct rtl8xxxu_priv *priv, > -- > 2.30.2
Martin Kaiser <martin@kaiser.cx> wrote: > Remove a return statement at the end of a void function. > > This fixes a checkpatch warning. > > WARNING: void function return statements are not generally useful > 6206: FILE: ./drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:6206: > + return; > +} > > Signed-off-by: Martin Kaiser <martin@kaiser.cx> > Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> Patch applied to wireless-next.git, thanks. 271a588d34ed wifi: rtl8xxxu: rtl8xxxu_rx_complete(): remove unnecessary return
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index fd8c8c6d53d6..7e7bb11231e3 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -6281,7 +6281,6 @@ static void rtl8xxxu_rx_complete(struct urb *urb) cleanup: usb_free_urb(urb); dev_kfree_skb(skb); - return; } static int rtl8xxxu_submit_rx_urb(struct rtl8xxxu_priv *priv,