Skip to content

Commit

Permalink
video: fbdev: omapfb: simplify the return expression of nec_8048_conn…
Browse files Browse the repository at this point in the history
…ect()

Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Minghao Chi authored and Helge Deller committed May 19, 2022
1 parent b93a85c commit 40189b7
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,11 @@ static int nec_8048_connect(struct omap_dss_device *dssdev)
{
struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *in = ddata->in;
int r;

if (omapdss_device_is_connected(dssdev))
return 0;

r = in->ops.dpi->connect(in, dssdev);
if (r)
return r;

return 0;
return in->ops.dpi->connect(in, dssdev);
}

static void nec_8048_disconnect(struct omap_dss_device *dssdev)
Expand Down

0 comments on commit 40189b7

Please sign in to comment.