diff options
author | Drew Davenport <ddavenport@chromium.org> | 2022-01-14 09:40:12 +0300 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2022-01-14 13:48:57 +0300 |
commit | 1500296576464dd4f8f7ba409069591648f4e98c (patch) | |
tree | d02ccb6d667f8286f38b1f9d45580fced773c9dd /drivers | |
parent | d72d84aea4d57a735d8cfbade32ed323f47a5941 (diff) | |
download | linux-1500296576464dd4f8f7ba409069591648f4e98c.tar.xz |
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 <ddavenport@chromium.org>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220114064012.1670612-1-ddavenport@chromium.org
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/bridge/ite-it66121.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c index 06b59b422c69..69288cf894b9 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -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); |