From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1DB47C for ; Mon, 28 Mar 2022 09:12:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39C84C340F0; Mon, 28 Mar 2022 09:12:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648458741; bh=WzFWWu1R9aaNE4hxIXvh1cfPuKjD+vdZInuaqPs0CVg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GpRTXzzBhe9JSoNRuOzIY6yUV8k73z/K8qMWuuB7nrQXUsAmknwPo5yUnlUGV4v7Q aA12cX2izmteE9/JqroXn/ah1hDCN8Zxq+kyNKia76QhgTb3akxMKhTZFzehAXW0ZU ZBzS4LApnHKBJWbfPJ0WHv8CAlbK6uICvbaatQOQ= Date: Mon, 28 Mar 2022 11:12:19 +0200 From: Greg KH To: =?utf-8?B?55m95rWp5paH?= Cc: "Larry.Finger@lwfinger.net" , "phil@philpotter.co.uk" , "straube.linux@gmail.com" , "martin@kaiser.cx" , "linux-staging@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: =?utf-8?B?562U5aSNOiBbUEFUQ0ggVjJdIHN0?= =?utf-8?Q?aging=3A_r8188eu=3A_Directl?= =?utf-8?Q?y?= return _SUCCESS instead of using local ret variable Message-ID: References: <1648457028-4226-1-git-send-email-baihaowen@meizu.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Mon, Mar 28, 2022 at 09:07:44AM +0000, 白浩文 wrote: > Hi, Greg KH > > Yes, I think sync rtl8723bs and r8188eu will be better as they have same problem. > > commit 067756acdac8e0dd91edf4800e844fcb6e0cc72a > Author: Hariprasad Kelam > Date: Mon Jul 15 23:16:18 2019 +0530 > > staging: rtl8723bs: core: Change return type of init_mlme_ext_priv > > As init_mlme_ext_priv function always returns SUCCESS , We can change > return type from int to void. > > Fixes below issue identified by coccicheck > drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:464:5-8: Unneeded > variable: "res". Return "_SUCCESS" on line 492 Yes, that would be good.