diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-07-06 18:11:32 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2021-07-07 22:43:32 +0300 |
commit | bebedf2bb4a9e0cb4ffa72cbc960728051b338a4 (patch) | |
tree | b13fc5f04c8f63fe8051cf111e63140254e3b188 /drivers/pwm | |
parent | 96e45e5202377da39d086ec19f8934ebcc5b0fd6 (diff) | |
download | linux-bebedf2bb4a9e0cb4ffa72cbc960728051b338a4.tar.xz |
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index a28c8639af5b..35e894f4a379 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -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; |