From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Markus Elfring <Markus.Elfring@web.de>
Cc: linux-i2c@vger.kernel.org, "Andi Shyti" <andi.shyti@kernel.org>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Benoît Monin" <benoit.monin@bootlin.com>,
"Jan Dabros" <jsd@semihalf.com>,
"Wolfram Sang" <wsa+renesas@sang-engineering.com>,
LKML <linux-kernel@vger.kernel.org>,
"Anand Moon" <linux.amoon@gmail.com>,
"Christophe Jaillet" <christophe.jaillet@wanadoo.fr>
Subject: Re: [PATCH] i2c: designware: Omit a variable reassignment in dw_i2c_plat_probe()
Date: Mon, 20 Oct 2025 15:06:58 +0200 [thread overview]
Message-ID: <20251020130658.GO2912318@black.igk.intel.com> (raw)
In-Reply-To: <bec52694-c755-4d88-aa36-1d96f6d146e4@web.de>
On Mon, Oct 20, 2025 at 01:08:53PM +0200, Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Mon, 20 Oct 2025 12:56:39 +0200
> Subject: [PATCH] i2c: designware: Omit a variable reassignment in dw_i2c_plat_probe()
>
> An error code was assigned to a variable and checked accordingly.
> This value was passed to a dev_err_probe() call in an if branch.
> This function is documented in the way that the same value is returned.
> Thus delete a redundant variable reassignment.
>
> The source code was transformed by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
next prev parent reply other threads:[~2025-10-20 13:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-20 11:08 [PATCH] i2c: designware: Omit a variable reassignment in dw_i2c_plat_probe() Markus Elfring
2025-10-20 13:06 ` Mika Westerberg [this message]
2025-10-20 13:12 ` Anand Moon
2025-10-21 22:50 ` Andi Shyti
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=20251020130658.GO2912318@black.igk.intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=Markus.Elfring@web.de \
--cc=andi.shyti@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=benoit.monin@bootlin.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=jsd@semihalf.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux.amoon@gmail.com \
--cc=wsa+renesas@sang-engineering.com \
/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