* [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
* Re: [PATCH v2] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
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
1 sibling, 0 replies; 4+ messages in thread
From: Rob Clark @ 2012-11-14 20:38 UTC (permalink / raw)
To: Andy Gross; +Cc: Greg Kroah-Hartman, dri-devel
On Wed, Nov 14, 2012 at 11:22 AM, Andy Gross <andy.gross@ti.com> wrote:
> 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: Rob Clark <rob@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
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
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
1 sibling, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2012-11-15 0:33 UTC (permalink / raw)
To: Andy Gross; +Cc: Rob Clark, dri-devel
On Wed, Nov 14, 2012 at 11:22:37AM -0600, Andy Gross wrote:
> 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: Rob Clark <rob@ti.com>
> ---
> drivers/staging/omapdrm/omap_dmm_tiler.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
This doesn't apply anymore, care to refresh it against my latest tree?
thanks,
greg k-h
^ permalink raw reply [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.