[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZcUNxT4lxFYhZNBB@smile.fi.intel.com>
Date: Thu, 8 Feb 2024 19:22:13 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Raag Jadav <raag.jadav@...el.com>
Cc: u.kleine-koenig@...gutronix.de, jarkko.nikula@...ux.intel.com,
mika.westerberg@...ux.intel.com, lakshmi.sowjanya.d@...el.com,
linux-pwm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 3/5] pwm: dwc: simplify error handling
On Thu, Feb 08, 2024 at 12:35:27PM +0530, Raag Jadav wrote:
> Simplify error handling in ->probe() function using dev_err_probe() helper.
..
> + return dev_err_probe(dev, ret, "Failed to enable device (%pe)\n", ERR_PTR(ret));
Have you checked the output?
Note, it will duplicate error codes which we don't want.
..
> + return dev_err_probe(dev, ret, "Failed to iomap PCI BAR (%pe)\n", ERR_PTR(ret));
Ditto.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists