Skip to content

Commit

Permalink
staging: drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
Browse files Browse the repository at this point in the history
Return PTR_ERR(-ENOMEM) if dmm_txn_init cannot allocate a
refill engine.

Signed-off-by: Andy Gross <andy.gross@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Andy Gross authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent be3c512 commit 743815a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/omapdrm/omap_dmm_tiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static int fill(struct tcm_area *area, struct page **pages,

txn = dmm_txn_init(omap_dmm, area->tcm);
if (IS_ERR_OR_NULL(txn))
return PTR_ERR(txn);
return PTR_ERR(-ENOMEM);

tcm_for_each_slice(slice, *area, area_s) {
struct pat_area p_area = {
Expand Down

0 comments on commit 743815a

Please sign in to comment.