power: regulator: rzg2l-usbphy: Add parenthesis to return expression
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 7 Aug 2025 16:35:21 +0000 (17:35 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 29 Aug 2025 22:45:19 +0000 (16:45 -0600)
commitcdc0e32e9c56fc3d14007d4c93394e8bcc8daa08
tree964021436331704197fc1c35d96b5902d507a390
parent96312ed79630838b09368c8c07ec164fd40a025c
power: regulator: rzg2l-usbphy: Add parenthesis to return expression

In order to get the expected result from
rzg2l_usbphy_regulator_get_enable the return expression needs
parenthesis so that the binary and is performed before the double
logical not.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
drivers/power/regulator/rzg2l-usbphy-regulator.c