mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 01:40:30 +00:00
drm/cma: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f2a5da4ff2
commit
f6fb754dc6
@ -215,10 +215,7 @@ int drm_gem_cma_dumb_create(struct drm_file *file_priv,
|
||||
|
||||
cma_obj = drm_gem_cma_create_with_handle(file_priv, dev,
|
||||
args->size, &args->handle);
|
||||
if (IS_ERR(cma_obj))
|
||||
return PTR_ERR(cma_obj);
|
||||
|
||||
return 0;
|
||||
return PTR_RET(cma_obj);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user