[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <536CA5BC.8080106@ti.com>
Date: Fri, 9 May 2014 12:54:04 +0300
From: Tomi Valkeinen <tomi.valkeinen@...com>
To: Fabian Frederick <fabf@...net.be>,
linux-kernel <linux-kernel@...r.kernel.org>
CC: Jean-Christophe Plagniol-Villard <plagnioj@...osoft.com>,
akpm <akpm@...ux-foundation.org>
Subject: Re: [PATCH 1/1] drivers/video/fbdev/core/fbmem.c: remove positive
test on unsigned values
On 25/04/14 23:15, Fabian Frederick wrote:
> fb_image.dx, fb_image.dy and fbconf2bmap.framebuffer are __u32
>
> Cc: Jean-Christophe Plagniol-Villard <plagnioj@...osoft.com>
> Cc: Tomi Valkeinen <tomi.valkeinen@...com>
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> Signed-off-by: Fabian Frederick <fabf@...net.be>
> ---
> drivers/video/fbdev/core/fbmem.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c
> index b6d5008..583896e 100644
> --- a/drivers/video/fbdev/core/fbmem.c
> +++ b/drivers/video/fbdev/core/fbmem.c
> @@ -433,7 +433,7 @@ static void fb_do_show_logo(struct fb_info *info, struct fb_image *image,
> image->dx += image->width + 8;
> }
> } else if (rotate == FB_ROTATE_UD) {
> - for (x = 0; x < num && image->dx >= 0; x++) {
> + for (x = 0; x < num; x++) {
> info->fbops->fb_imageblit(info, image);
> image->dx -= image->width + 8;
> }
> @@ -445,7 +445,7 @@ static void fb_do_show_logo(struct fb_info *info, struct fb_image *image,
> image->dy += image->height + 8;
> }
> } else if (rotate == FB_ROTATE_CCW) {
> - for (x = 0; x < num && image->dy >= 0; x++) {
> + for (x = 0; x < num; x++) {
> info->fbops->fb_imageblit(info, image);
> image->dy -= image->height + 8;
> }
> @@ -1179,7 +1179,7 @@ static long do_fb_ioctl(struct fb_info *info, unsigned int cmd,
> return -EFAULT;
> if (con2fb.console < 1 || con2fb.console > MAX_NR_CONSOLES)
> return -EINVAL;
> - if (con2fb.framebuffer < 0 || con2fb.framebuffer >= FB_MAX)
> + if (con2fb.framebuffer >= FB_MAX)
> return -EINVAL;
> if (!registered_fb[con2fb.framebuffer])
> request_module("fb%d", con2fb.framebuffer);
>
Looks fine to me. Queued for 3.16.
Tomi
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists