From: Raag Jadav <raag.jadav@intel.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Thorsten Scherer <T.Scherer@eckelmann.de>,
jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com,
andriy.shevchenko@linux.intel.com, lakshmi.sowjanya.d@intel.com,
linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/4] pwm: dwc: drop redundant error check
Date: Mon, 19 Feb 2024 11:15:24 +0200 [thread overview]
Message-ID: <ZdMcLAIsi6UHPUho@black.fi.intel.com> (raw)
In-Reply-To: <4cl5y62fv4jezk7i3cacv5ukzwyp66uflp3upg4czy4dp7g43v@cfbm2seewpst>
On Mon, Feb 19, 2024 at 08:27:43AM +0100, Uwe Kleine-König wrote:
> Hello,
>
> On Mon, Feb 19, 2024 at 08:11:00AM +0100, Thorsten Scherer wrote:
> > On Mon, Feb 19, 2024 at 09:08:33AM +0530, Raag Jadav wrote:
> > > pcim_iomap_table() fails only if pcim_iomap_regions() fails. No need to
> > > check for failure if the latter is already successful.
> > >
> > > Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > > Signed-off-by: Raag Jadav <raag.jadav@intel.com>
> > > Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
> > > ---
> > > drivers/pwm/pwm-dwc.c | 5 +----
> > > 1 file changed, 1 insertion(+), 4 deletions(-)
> > >
> > > diff --git a/drivers/pwm/pwm-dwc.c b/drivers/pwm/pwm-dwc.c
> > > index c0e586688e57..7dbb72c80ef5 100644
> > > --- a/drivers/pwm/pwm-dwc.c
> > > +++ b/drivers/pwm/pwm-dwc.c
> > > @@ -51,11 +51,8 @@ static int dwc_pwm_probe(struct pci_dev *pci, const struct pci_device_id *id)
> > > return ret;
> > > }
> > >
> > > + /* No need to check for failure, pcim_iomap_regions() does it for us. */
> >
> > IMHO this comment could be omitted.
>
> I like the comment (and even asked for it). Is it really only me who
> doesn't know that after pcim_iomap_regions() calling pcim_iomap_table()
> is unproblematic?
Neither did I :) (Check the v1 discussion)
Raag
next prev parent reply other threads:[~2024-02-19 9:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-19 3:38 [PATCH v4 0/4] DesignWare PWM improvements Raag Jadav
2024-02-19 3:38 ` [PATCH v4 1/4] pwm: dwc: Fix PM regression Raag Jadav
2024-02-19 7:22 ` Uwe Kleine-König
2024-02-19 9:05 ` Raag Jadav
2024-02-19 3:38 ` [PATCH v4 2/4] pwm: dwc: drop redundant error check Raag Jadav
2024-02-19 7:11 ` Thorsten Scherer
2024-02-19 7:27 ` Uwe Kleine-König
2024-02-19 9:15 ` Raag Jadav [this message]
2024-02-19 8:00 ` Thorsten Scherer
2024-02-19 3:38 ` [PATCH v4 3/4] pwm: dwc: Add 16 channel support for Intel Elkhart Lake Raag Jadav
2024-02-19 3:38 ` [PATCH v4 4/4] pwm: dwc: simplify error handling Raag Jadav
2024-02-20 16:00 ` [PATCH v4 0/4] DesignWare PWM improvements Uwe Kleine-König
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=ZdMcLAIsi6UHPUho@black.fi.intel.com \
--to=raag.jadav@intel.com \
--cc=T.Scherer@eckelmann.de \
--cc=andriy.shevchenko@linux.intel.com \
--cc=jarkko.nikula@linux.intel.com \
--cc=lakshmi.sowjanya.d@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=u.kleine-koenig@pengutronix.de \
/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