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
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -117,16 +117,11 @@ static int nec_8048_connect(struct omap_dss_device *dssdev)
{
{
	struct panel_drv_data *ddata = to_panel_data(dssdev);
	struct panel_drv_data *ddata = to_panel_data(dssdev);
	struct omap_dss_device *in = ddata->in;
	struct omap_dss_device *in = ddata->in;
	int r;


	if (omapdss_device_is_connected(dssdev))
	if (omapdss_device_is_connected(dssdev))
		return 0;
		return 0;


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

	return 0;
}
}


static void nec_8048_disconnect(struct omap_dss_device *dssdev)
static void nec_8048_disconnect(struct omap_dss_device *dssdev)