Skip to content

Commit bebedf2

Browse files
Colin Ian Kingthierryreding
authored andcommitted
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>
1 parent 96e45e5 commit bebedf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pwm/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ EXPORT_SYMBOL_GPL(of_pwm_get);
846846
*/
847847
static struct pwm_device *acpi_pwm_get(const struct fwnode_handle *fwnode)
848848
{
849-
struct pwm_device *pwm = ERR_PTR(-ENODEV);
849+
struct pwm_device *pwm;
850850
struct fwnode_reference_args args;
851851
struct pwm_chip *chip;
852852
int ret;

0 commit comments

Comments
 (0)