mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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:
parent
96e45e5202
commit
bebedf2bb4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user