drm/omap: dss: simplify the return expression of dss_setup_default_clock()
Subsystems (3)
PATCH 1/1 drm/omap: dss: simplify the return expression of dss_setup_default_clock()
Simplify the return expression.
Signed-off-by Qinglang Miao <[email protected]>
--- drivers/gpu/drm/omapdrm/dss/dss.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/gpu/drm/omapdrm/dss/dss.c +1 -6
@@ -672,7 +672,6 @@ static int dss_setup_default_clock(struct dss_device *dss)unsigned long max_dss_fck, prate;unsigned long fck;unsigned int fck_div; -int r; max_dss_fck = dss->feat->fck_freq_max;
@@ -687,11 +686,7 @@ static int dss_setup_default_clock(struct dss_device *dss) * dss->feat->dss_fck_multiplier; } - r =dss_set_fck_rate (dss, fck); -if (r) -return r; - -return 0 ; +return dss_set_fck_rate (dss, fck); }void dss_set_venc_output (struct dss_device *dss,enum omap_dss_venc_type type)
Signature · 1 line
2.23.0