led: pwm: don't test if pointer is smaller than zero
of_pwm_request returns either the valid or an error pointer.
Revise the error check to reflect this.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1572a1f commit 213192253a4d8599f1d8127a7bdf87b80c767650
@Ahmad Fatoum Ahmad Fatoum authored on 6 Feb 2020
Sascha Hauer committed on 10 Feb 2020
Showing 1 changed file
View
drivers/led/led-pwm.c