Messages in this thread | | | Date | Sun, 7 Aug 2022 10:57:47 +0200 | From | Uwe Kleine-König <> | Subject | Re: [PATCH v1 2/4] pwm: sysfs: Return directly from the for-loop in PM callbacks |
| |
On Sun, Aug 07, 2022 at 12:23:29AM +0300, Andy Shevchenko wrote: > There is no need to assign ret to 0 and then break the loop just > for returning the error to the caller. Instead, return directly > from the for-loop, and 0 otherwise. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thanks! Uwe
-- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [unhandled content-type:application/pgp-signature] | |