[PATCH] pwm: stmpe: Deleted extra {}

Jilin Yuan yuanjilin at cdjrlc.com
Tue Jun 7 18:03:18 PDT 2022


Remove unnecessary braces

Signed-off-by: Jilin Yuan <yuanjilin at cdjrlc.com>
---
 drivers/pwm/pwm-stmpe.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/pwm/pwm-stmpe.c b/drivers/pwm/pwm-stmpe.c
index 2df526fe9c38..c45fe27859de 100644
--- a/drivers/pwm/pwm-stmpe.c
+++ b/drivers/pwm/pwm-stmpe.c
@@ -78,10 +78,9 @@ static void stmpe_24xx_pwm_disable(struct pwm_chip *chip,
 	value = ret & ~BIT(pwm->hwpwm);
 
 	ret = stmpe_reg_write(stmpe_pwm->stmpe, STMPE24XX_PWMCS, value);
-	if (ret) {
+	if (ret)
 		dev_err(chip->dev, "error writing PWM#%u control\n",
 			pwm->hwpwm);
-	}
 }
 
 /* STMPE 24xx PWM instructions */
-- 
2.36.1




More information about the linux-arm-kernel mailing list