Skip to content

Commit 40189b7

Browse files
Minghao Chihdeller
authored andcommitted
video: fbdev: omapfb: simplify the return expression of nec_8048_connect()
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>
1 parent b93a85c commit 40189b7

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,11 @@ static int nec_8048_connect(struct omap_dss_device *dssdev)
117117
{
118118
struct panel_drv_data *ddata = to_panel_data(dssdev);
119119
struct omap_dss_device *in = ddata->in;
120-
int r;
121120

122121
if (omapdss_device_is_connected(dssdev))
123122
return 0;
124123

125-
r = in->ops.dpi->connect(in, dssdev);
126-
if (r)
127-
return r;
128-
129-
return 0;
124+
return in->ops.dpi->connect(in, dssdev);
130125
}
131126

132127
static void nec_8048_disconnect(struct omap_dss_device *dssdev)

0 commit comments

Comments
 (0)