On Wed, Feb 14, 2024 at 10:33:24AM +0100, Uwe Kleine-König wrote:
The pwm framework already asserts to only pass a hwpwm value (= which) less than npwm (= pwmc->pwm_max + 1). So there is no need to recheck this condition. Drop the respective checks.
Signed-off-by: Uwe Kleine-König u.kleine-koenig@pengutronix.de
Reviewed-by: Greg Kroah-Hartman gregkh@linuxfoundation.org