X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fvideo%2Ffbcmap.c;h=1f98392a43b3c2746b8b51818bac745e09d4b8de;hb=b89fa8b6d738d71c3a9eff584177bb7de13f33b9;hp=c32a2a50bfa2a0870bd69f5c86bbf68a8c81e64d;hpb=ef88b7dba2b47c70037a34a599d383462bb74bd3;p=powerpc.git diff --git a/drivers/video/fbcmap.c b/drivers/video/fbcmap.c index c32a2a50bf..1f98392a43 100644 --- 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. * - * 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); - return -1; + return -ENOMEM; } /**