Skip to content

Commit

Permalink
OMAPDSS: remove extra out == NULL checks
Browse files Browse the repository at this point in the history
All the output drivers check for 'out' being NULL, but it can never be
NULL. Remove the check.

Signed-off-by: Tomi Valkeinen <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
  • Loading branch information
tomba committed Dec 29, 2015
1 parent 6590415 commit b742648
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/dss/dpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/dss/hdmi4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/dss/hdmi5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/dss/rfbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/dss/sdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/dss/venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b742648

Please sign in to comment.