X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fvideo%2Ffbcmap.c;h=e8b135f3d80d1590bf59cd905f213b701fe83a5a;hb=519ab5f2be65b72cf12ae99c89752bbe79b44df6;hp=c32a2a50bfa2a0870bd69f5c86bbf68a8c81e64d;hpb=bdf242eeb0f69567fe43eba93889d80ecacbfe94;p=linux-2.6-omap-h63xx.git diff --git a/drivers/video/fbcmap.c b/drivers/video/fbcmap.c index c32a2a50bfa..e8b135f3d80 100644 --- a/drivers/video/fbcmap.c +++ b/drivers/video/fbcmap.c @@ -13,7 +13,6 @@ #include #include -#include #include #include @@ -85,7 +84,7 @@ static struct fb_cmap default_16_colors = { * 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 +115,7 @@ int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp) fail: fb_dealloc_cmap(cmap); - return -1; + return -ENOMEM; } /**