Skip to content
Snippets Groups Projects
Commit 40189b73 authored by Minghao Chi's avatar Minghao Chi Committed by Helge Deller
Browse files

video: fbdev: omapfb: simplify the return expression of nec_8048_connect()


Simplify the return expression.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent b93a85c1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment