Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 295c799a authored by Andy Gross's avatar Andy Gross Committed by Greg Kroah-Hartman
Browse files

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: default avatarAndy Gross <andy.gross@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9d36976f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = {