drm/panel: ili9341: Remove a superfluous else after return
authorSui Jingfeng <sui.jingfeng@linux.dev>
Wed, 1 May 2024 05:24:02 +0000 (13:24 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 2 May 2024 07:45:31 +0000 (09:45 +0200)
Because the else clause after the return clause is not useful, remove it
to get a better look.

Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Link: https://lore.kernel.org/r/20240501052402.806006-1-sui.jingfeng@linux.dev
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240501052402.806006-1-sui.jingfeng@linux.dev
drivers/gpu/drm/panel/panel-ilitek-ili9341.c

index 3574681..433572c 100644 (file)
@@ -722,7 +722,8 @@ static int ili9341_probe(struct spi_device *spi)
 
        if (!strcmp(id->name, "sf-tc240t-9370-t"))
                return ili9341_dpi_probe(spi, dc, reset);
-       else if (!strcmp(id->name, "yx240qv29"))
+
+       if (!strcmp(id->name, "yx240qv29"))
                return ili9341_dbi_probe(spi, dc, reset);
 
        return -1;