From: Andy Yan Date: Mon, 12 May 2025 12:46:04 +0000 (+0800) Subject: drm/rockchip: inno_hdmi: Remove unnecessary parentheses to make checkpatch happy X-Git-Tag: io_uring-6.17-20250815~29^2~5^2~30 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7431c5462c7f20b7f111c9957a007b8de5b8a76a;p=linux-block.git drm/rockchip: inno_hdmi: Remove unnecessary parentheses to make checkpatch happy Remove unnecessary parentheses to make checkpatch happy. Signed-off-by: Andy Yan Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250512124615.2848731-4-andyshrk@163.com --- diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 82c62400b2e1..7b4c952f2692 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -1124,8 +1124,7 @@ static int inno_hdmi_i2c_write(struct inno_hdmi *hdmi, struct i2c_msg *msgs) * we assume that each word write to this i2c adapter * should be the offset of EDID word address. */ - if ((msgs->len != 1) || - ((msgs->addr != DDC_ADDR) && (msgs->addr != DDC_SEGMENT_ADDR))) + if (msgs->len != 1 || (msgs->addr != DDC_ADDR && msgs->addr != DDC_SEGMENT_ADDR)) return -EINVAL; reinit_completion(&hdmi->i2c->cmp);