projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] smc911x Kconfig fix
[powerpc.git]
/
drivers
/
video
/
fbcmap.c
diff --git
a/drivers/video/fbcmap.c
b/drivers/video/fbcmap.c
index
c32a2a5
..
1f98392
100644
(file)
--- a/
drivers/video/fbcmap.c
+++ b/
drivers/video/fbcmap.c
@@
-85,7
+85,7
@@
static struct fb_cmap default_16_colors = {
* Allocates memory for a colormap @cmap. @len is the
* number of entries in the palette.
*
* Allocates memory for a colormap @cmap. @len is the
* number of entries in the palette.
*
- * Returns
-1
errno on error, or zero on success.
+ * Returns
negative
errno on error, or zero on success.
*
*/
*
*/
@@
-116,7
+116,7
@@
int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp)
fail:
fb_dealloc_cmap(cmap);
fail:
fb_dealloc_cmap(cmap);
- return -
1
;
+ return -
ENOMEM
;
}
/**
}
/**