* [PATCH -next] drm/omap: dss: simplify the return expression of dss_setup_default_clock()
@ 2020-09-21 13:10 ` Qinglang Miao
0 siblings, 0 replies; 2+ messages in thread
From: Qinglang Miao @ 2020-09-21 13:10 UTC (permalink / raw)
To: Tomi Valkeinen, David Airlie, Daniel Vetter
Cc: dri-devel, linux-kernel, Qinglang Miao
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
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 6ccbc29c4..b74579270 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.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH -next] drm/omap: dss: simplify the return expression of dss_setup_default_clock()
@ 2020-09-21 13:10 ` Qinglang Miao
0 siblings, 0 replies; 2+ messages in thread
From: Qinglang Miao @ 2020-09-21 13:10 UTC (permalink / raw)
To: Tomi Valkeinen, David Airlie, Daniel Vetter
Cc: Qinglang Miao, linux-kernel, dri-devel
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
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 6ccbc29c4..b74579270 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.23.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-22 7:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 13:10 [PATCH -next] drm/omap: dss: simplify the return expression of dss_setup_default_clock() Qinglang Miao
2020-09-21 13:10 ` Qinglang Miao
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.