drm: bridge: it66121: Remove redundant check
authorDrew Davenport <ddavenport@chromium.org>
Fri, 14 Jan 2022 06:40:12 +0000 (23:40 -0700)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 14 Jan 2022 10:48:57 +0000 (11:48 +0100)
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
drivers/gpu/drm/bridge/ite-it66121.c

index 06b59b422c6960abed44418e03c3505eaa27d89c..69288cf894b9970a23c43fce0fdaf0c73043e7c6 100644 (file)
@@ -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);