diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-06-21 15:04:57 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2021-06-30 19:12:20 +0200 |
commit | fb2cb3bff9e0ede1709620809374dd14c07b1e16 (patch) | |
tree | b869ea14f71146ff847b53ba89e1a31e05fdeca0 /lib/plist.c | |
parent | 2f1a3bd4510afd8cf5ab5a6169ad64981a62dccf (diff) | |
download | linux-stable-fb2cb3bff9e0ede1709620809374dd14c07b1e16.tar.gz linux-stable-fb2cb3bff9e0ede1709620809374dd14c07b1e16.tar.bz2 linux-stable-fb2cb3bff9e0ede1709620809374dd14c07b1e16.zip |
pwm: vt8500: Drop if with an always false condition
vt8500_pwm_remove() is only called after vt8500_pwm_probe() returned
successfully. In this case driver data was set to a non-NULL value
and so chip can never be NULL.
While touching this code also put declaration and assignment in a single
line.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'lib/plist.c')
0 files changed, 0 insertions, 0 deletions