summaryrefslogtreecommitdiff
path: root/drivers/staging/omapdrm
diff options
context:
space:
mode:
authorAndy Gross <andy.gross@ti.com>2012-11-16 19:10:57 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-16 23:03:10 (GMT)
commit295c799ae45b3678d9b8d3e845635ed07ce3b66a (patch)
tree36cf2c2aeb9cb35892cc230a679b4cf0dc38582d /drivers/staging/omapdrm
parent9d36976fad3008fcc4209789566f7f3e7763f212 (diff)
downloadlinux-fsl-qoriq-295c799ae45b3678d9b8d3e845635ed07ce3b66a.tar.xz
staging: drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
Return -ENOMEM if dmm_txn_init cannot allocate a refill engine. v2: Fix typing issue seen with newer compilers Signed-off-by: Andy Gross <andy.gross@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/omapdrm')
-rw-r--r--drivers/staging/omapdrm/omap_dmm_tiler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/omapdrm/omap_dmm_tiler.c b/drivers/staging/omapdrm/omap_dmm_tiler.c
index 5c809c0..59bf438 100644
--- a/drivers/staging/omapdrm/omap_dmm_tiler.c
+++ b/drivers/staging/omapdrm/omap_dmm_tiler.c
@@ -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(-ENOMEM);
+ return -ENOMEM;
tcm_for_each_slice(slice, *area, area_s) {
struct pat_area p_area = {