Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Sang-Heon Jeon <ekffu200098@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH rtw-next v2 2/2] wifi: rtw89: remove conditional return with no effect
Date: Mon, 27 Jul 2026 02:06:46 +0000	[thread overview]
Message-ID: <67544abb483b49cf859ce38b2bcf5d8e@realtek.com> (raw)
In-Reply-To: <20260726134034.1385834-3-ekffu200098@gmail.com>

Sang-Heon Jeon <ekffu200098@gmail.com> wrote:
> Both branches of the check return the same value, so the check has
> no effect. Remove it and return the value directly.
> 
> This is the result of running the Coccinelle script from
> scripts/coccinelle/misc/cond_return_no_effect.cocci.
> 
> Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>

I'd update the subject to be more specific during it gets merged.

"wifi: rtw89: remove conditional return with no effect in sys_init_*()"

Acked-by: Ping-Ke Shih <pkshih@realtek.com>



      reply	other threads:[~2026-07-27  2:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-26 13:40 [PATCH rtw-next v2 0/2] wifi: rtlwifi/rtw89: remove conditional returns with no effect Sang-Heon Jeon
2026-07-26 13:40 ` [PATCH rtw-next v2 1/2] wifi: rtlwifi: rtl8821ae: remove conditional return " Sang-Heon Jeon
2026-07-27  2:04   ` Ping-Ke Shih
2026-07-27  2:09     ` Ping-Ke Shih
2026-07-26 13:40 ` [PATCH rtw-next v2 2/2] wifi: rtw89: " Sang-Heon Jeon
2026-07-27  2:06   ` Ping-Ke Shih [this message]

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=67544abb483b49cf859ce38b2bcf5d8e@realtek.com \
    --to=pkshih@realtek.com \
    --cc=ekffu200098@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@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