projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d36976
)
staging: drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
author
Andy Gross
<
[email protected]
>
Fri, 16 Nov 2012 19:10:57 +0000
(13:10 -0600)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 16 Nov 2012 23:03:10 +0000
(15:03 -0800)
Return -ENOMEM if dmm_txn_init cannot allocate a refill engine.
v2: Fix typing issue seen with newer compilers
Signed-off-by: Andy Gross <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/omapdrm/omap_dmm_tiler.c
patch
|
blob
|
history
diff --git
a/drivers/staging/omapdrm/omap_dmm_tiler.c
b/drivers/staging/omapdrm/omap_dmm_tiler.c
index 5c809c0568597e339cbf31dfc815e97394c223f5..59bf43899fc09d20ac5c01a0c1894f4b166bc189 100644
(file)
--- 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 = {