drm: bridge: it66121: Remove redundant check
PATCH 1/1 drm: bridge: it66121: Remove redundant check
ctx->next_bridge is checked for NULL twice in a row. The second conditional is redundant, so remove it.
Signed-off-by Drew Davenport <[email protected]>
--- drivers/gpu/drm/bridge/ite-it66121.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/bridge/ite-it66121.c +0 -3
@@ -936,9 +936,6 @@ static int it66121_probe(struct i2c_client *client,return -EPROBE_DEFER ; } -if (!ctx->next_bridge) -return -EPROBE_DEFER ; -i2c_set_clientdata (client, ctx);mutex_init (&ctx->lock);
Signature · 1 line
2.34.1.703.g22d0c6ccf7-goog
Quoted 14 lines · Drew Davenport
ctx->next_bridgeis checked for NULL twice in a row. The second conditional is redundant, so remove it.Signed-off-by Drew Davenport <[email protected]>--- drivers/gpu/drm/bridge/ite-it66121.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/bridge/ite-it66121.c +0
-0
drivers/gpu/drm/bridge/ite-it66121.c static int it66121_probe(struct i2c_client *client, · line 941
Quoted 9 lines
drivers/gpu/drm/bridge/ite-it66121.c +0
-3@@ -936,9 +936,6 @@ static int it66121_probe(struct i2c_client *client,return -EPROBE_DEFER ; } -if (!ctx->next_bridge) -return -EPROBE_DEFER ; -i2c_set_clientdata (client, ctx);mutex_init (&ctx->lock);
Acked-by Neil Armstrong <[email protected]>
Neil Armstrong
AppliedHi,
Quoted 4 lines · Drew Davenport
ctx->next_bridgeis checked for NULL twice in a row. The second conditional is redundant, so remove it.
Thanks, Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next)
[1/1] drm: bridge: it66121: Remove redundant check
https://cgit.freedesktop.org/drm/drm-misc/commit/?id=1500296576464dd4f8f7ba409069591648f4e98c
Signature · 1 line
Neil