staging: drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
authorAndy Gross <andy.gross@ti.com>
Tue, 13 Nov 2012 21:41:32 +0000 (15:41 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 23:14:59 +0000 (15:14 -0800)
commit743815ae1bbd2790321a3ab1f23abb82c1fdd45b
tree1601e111d2e0489d056d563c4af61383867487be
parentbe3c5126b553cc807d112a5010a10f8e5bee5427
staging: drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR

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>
drivers/staging/omapdrm/omap_dmm_tiler.c