projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
372a927
)
drm/rockchip: inno_hdmi: Remove unnecessary parentheses to make checkpatch happy
author
Andy Yan
<andy.yan@rock-chips.com>
Mon, 12 May 2025 12:46:04 +0000
(20:46 +0800)
committer
Heiko Stuebner
<heiko@sntech.de>
Tue, 8 Jul 2025 15:35:49 +0000
(17:35 +0200)
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
drivers/gpu/drm/rockchip/inno_hdmi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/rockchip/inno_hdmi.c
b/drivers/gpu/drm/rockchip/inno_hdmi.c
index 82c62400b2e1e08fd32897f8e9a13bd1b66c6e2b..7b4c952f26922d51bf179508df2de348da47ed7a 100644
(file)
--- 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);