pwm: Remove redundant assignment to pointer pwm

The pointer pwm is being initialized with a value that is never read and
it is being updated later with a new value. The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
Colin Ian King 2021-07-06 16:11:32 +01:00 committed by Thierry Reding
parent 96e45e5202
commit bebedf2bb4

View File

@ -846,7 +846,7 @@ EXPORT_SYMBOL_GPL(of_pwm_get);
*/
static struct pwm_device *acpi_pwm_get(const struct fwnode_handle *fwnode)
{
struct pwm_device *pwm = ERR_PTR(-ENODEV);
struct pwm_device *pwm;
struct fwnode_reference_args args;
struct pwm_chip *chip;
int ret;