[PATCH] drm: omapdrm: simplify the return expression of dss_setup_default_clock()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Minghao Chi <chi.minghao@xxxxxxxxxx>

Simplify the return expression.

Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
Signed-off-by: Minghao Chi <chi.minghao@xxxxxxxxxx>
---
 drivers/gpu/drm/omapdrm/dss/dss.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index 0399f3390a0a..2f13805d85ba 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -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)
-- 
2.25.1





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux