All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
@ 2012-11-14 17:22 Andy Gross
  2012-11-14 20:38 ` Rob Clark
  2012-11-15  0:33 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Gross @ 2012-11-14 17:22 UTC (permalink / raw)
  To: dri-devel; +Cc: Greg Kroah-Hartman, Rob Clark

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>
---
 drivers/staging/omapdrm/omap_dmm_tiler.c |    2 +-
 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 3ae3955..1499521 100644
--- a/drivers/staging/omapdrm/omap_dmm_tiler.c
+++ b/drivers/staging/omapdrm/omap_dmm_tiler.c
@@ -279,7 +279,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 -ENOMEM;
 
 	tcm_for_each_slice(slice, *area, area_s) {
 		struct pat_area p_area = {
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH v2] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
@ 2012-11-16 19:10 Andy Gross
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Gross @ 2012-11-16 19:10 UTC (permalink / raw)
  To: dri-devel; +Cc: Greg Kroah-Hartman, Rob Clark

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>
---
 drivers/staging/omapdrm/omap_dmm_tiler.c |    2 +-
 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 = {
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-16 19:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-14 17:22 [PATCH v2] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR Andy Gross
2012-11-14 20:38 ` Rob Clark
2012-11-15  0:33 ` Greg Kroah-Hartman
  -- strict thread matches above, loose matches on Subject: below --
2012-11-16 19:10 Andy Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.