mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
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>
This commit is contained in:
parent
c7d6a0d676
commit
993d52e2f7
1 changed files with 1 additions and 1 deletions
|
@ -947,7 +947,7 @@ dss_debugfs_create_file(struct dss_device *dss, const char *name,
|
||||||
&dss_debug_fops);
|
&dss_debug_fops);
|
||||||
if (IS_ERR(d)) {
|
if (IS_ERR(d)) {
|
||||||
kfree(entry);
|
kfree(entry);
|
||||||
return ERR_PTR(PTR_ERR(d));
|
return ERR_CAST(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
entry->dentry = d;
|
entry->dentry = d;
|
||||||
|
|
Loading…
Reference in a new issue