Skip to content

Commit

Permalink
drm/prime: Cocci spatch "err_cast.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 8d06cd0 commit f2a5da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_prime.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev,

attach = dma_buf_attach(dma_buf, dev->dev);
if (IS_ERR(attach))
return ERR_PTR(PTR_ERR(attach));
return ERR_CAST(attach);

get_dma_buf(dma_buf);

Expand Down

0 comments on commit f2a5da4

Please sign in to comment.