diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-09-11 07:54:35 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-10-02 02:36:56 -0400 |
commit | 993d52e2f71560d539b3f194be2970eb9d8ce9c1 (patch) | |
tree | cd9c40d402c855c7c917b7edd17540dd3a6fc483 | |
parent | c7d6a0d6764680df33057d23173e786266a5b71d (diff) |
drm/omap: Use ERR_CAST directly instead of ERR_PTR(PTR_ERR())
We prefer to use ERR_CAST to do so.
The issue is detected with the help of Coccinelle.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c index 19fc4dfc429e..1aaf260aa9b8 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss.c +++ b/drivers/gpu/drm/omapdrm/dss/dss.c | |||
@@ -947,7 +947,7 @@ dss_debugfs_create_file(struct dss_device *dss, const char *name, | |||
947 | &dss_debug_fops); | 947 | &dss_debug_fops); |
948 | if (IS_ERR(d)) { | 948 | if (IS_ERR(d)) { |
949 | kfree(entry); | 949 | kfree(entry); |
950 | return ERR_PTR(PTR_ERR(d)); | 950 | return ERR_CAST(d); |
951 | } | 951 | } |
952 | 952 | ||
953 | entry->dentry = d; | 953 | entry->dentry = d; |