Skip to content

Commit 7431c54

Browse files
Andy Yanmmind
authored andcommitted
drm/rockchip: inno_hdmi: Remove unnecessary parentheses to make checkpatch happy
Remove unnecessary parentheses to make checkpatch happy. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20250512124615.2848731-4-andyshrk@163.com
1 parent 372a927 commit 7431c54

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/rockchip/inno_hdmi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,8 +1124,7 @@ static int inno_hdmi_i2c_write(struct inno_hdmi *hdmi, struct i2c_msg *msgs)
11241124
* we assume that each word write to this i2c adapter
11251125
* should be the offset of EDID word address.
11261126
*/
1127-
if ((msgs->len != 1) ||
1128-
((msgs->addr != DDC_ADDR) && (msgs->addr != DDC_SEGMENT_ADDR)))
1127+
if (msgs->len != 1 || (msgs->addr != DDC_ADDR && msgs->addr != DDC_SEGMENT_ADDR))
11291128
return -EINVAL;
11301129

11311130
reinit_completion(&hdmi->i2c->cmp);

0 commit comments

Comments
 (0)