OMAPDSS: remove extra out == NULL checks
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 4 Nov 2015 15:10:58 +0000 (17:10 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 29 Dec 2015 09:06:29 +0000 (11:06 +0200)
All the output drivers check for 'out' being NULL, but it can never be
NULL. Remove the check.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/video/fbdev/omap2/dss/dpi.c
drivers/video/fbdev/omap2/dss/dsi.c
drivers/video/fbdev/omap2/dss/hdmi4.c
drivers/video/fbdev/omap2/dss/hdmi5.c
drivers/video/fbdev/omap2/dss/rfbi.c
drivers/video/fbdev/omap2/dss/sdi.c
drivers/video/fbdev/omap2/dss/venc.c

index fb45b6432968e0ab73277497392729f5b5c3cdad..7953e6a523463080fc22569bd89dc3f7918c6dc4 100644 (file)
@@ -395,7 +395,7 @@ static int dpi_display_enable(struct omap_dss_device *dssdev)
                goto err_no_reg;
        }
 
-       if (out == NULL || out->manager == NULL) {
+       if (out->manager == NULL) {
                DSSERR("failed to enable display: no output/manager\n");
                r = -ENODEV;
                goto err_no_out_mgr;
index b3606def5b7ba7e853397ce223cedfb5d481027a..59065e18444d04098fcc37dab332555aa19ef72a 100644 (file)
@@ -3833,7 +3833,7 @@ static int dsi_enable_video_output(struct omap_dss_device *dssdev, int channel)
        u16 word_count;
        int r;
 
-       if (out == NULL || out->manager == NULL) {
+       if (out->manager == NULL) {
                DSSERR("failed to enable display: no output/manager\n");
                return -ENODEV;
        }
index 94c8d5549b4c356310afe206de0cbf64f303e495..7103c659a53488f48495dee43091200edb95f53b 100644 (file)
@@ -343,7 +343,7 @@ static int hdmi_display_enable(struct omap_dss_device *dssdev)
 
        mutex_lock(&hdmi.lock);
 
-       if (out == NULL || out->manager == NULL) {
+       if (out->manager == NULL) {
                DSSERR("failed to enable display: no output/manager\n");
                r = -ENODEV;
                goto err0;
index b59ba7902be1be112dcc1e954eaa1a03c58b374f..a955a2c4c061f4cd1c890f61f2ec749076eb66b9 100644 (file)
@@ -373,7 +373,7 @@ static int hdmi_display_enable(struct omap_dss_device *dssdev)
 
        mutex_lock(&hdmi.lock);
 
-       if (out == NULL || out->manager == NULL) {
+       if (out->manager == NULL) {
                DSSERR("failed to enable display: no output/manager\n");
                r = -ENODEV;
                goto err0;
index 1525a494d057a552ba86b900c43afbd253c0f883..aea6a1d0fb201e29ab7d18551a6dc595e3991dbd 100644 (file)
@@ -880,7 +880,7 @@ static int rfbi_display_enable(struct omap_dss_device *dssdev)
        struct omap_dss_device *out = &rfbi.output;
        int r;
 
-       if (out == NULL || out->manager == NULL) {
+       if (out->manager == NULL) {
                DSSERR("failed to enable display: no output/manager\n");
                return -ENODEV;
        }
index 5843580a1deb89c115c4a44939069776e8349f2f..d747cc6b59e14d87c167adeb9a526a9500ed460c 100644 (file)
@@ -136,7 +136,7 @@ static int sdi_display_enable(struct omap_dss_device *dssdev)
        unsigned long pck;
        int r;
 
-       if (out == NULL || out->manager == NULL) {
+       if (out->manager == NULL) {
                DSSERR("failed to enable display: no output/manager\n");
                return -ENODEV;
        }
index 99ca268c1cddf24332308b58fbeb051d565b8dca..c9260a451ca688b75620a33d06fedf42dddb6542 100644 (file)
@@ -503,7 +503,7 @@ static int venc_display_enable(struct omap_dss_device *dssdev)
 
        mutex_lock(&venc.venc_lock);
 
-       if (out == NULL || out->manager == NULL) {
+       if (out->manager == NULL) {
                DSSERR("Failed to enable display: no output/manager\n");
                r = -ENODEV;
                goto err0;
This page took 0.033145 seconds and 5 git commands to generate.