Skip to content

Commit

Permalink
drm/cma: Cocci spatch "ptr_ret.spatch"
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Meyer <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
thomasmey authored and airlied committed Jun 10, 2013
1 parent f2a5da4 commit f6fb754
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/gpu/drm/drm_gem_cma_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f6fb754

Please sign in to comment.