From: Filipe Rosset Date: Thu, 28 May 2009 14:11:53 +0000 (-0300) Subject: V4L/DVB (11895): bt8xx: remove always false if X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~11348^2~124 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f41b6961566b2cd038ad91568882f8fc1feac160;p=mirror_ubuntu-zesty-kernel.git V4L/DVB (11895): bt8xx: remove always false if Remove always false if over unsigned int variable Signed-off-by: Filipe Rosset Signed-off-by: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index 539ae45bebd9..7c1f82661ee8 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c @@ -4628,7 +4628,7 @@ static int __init bttv_init_module(void) #endif if (gbuffers < 2 || gbuffers > VIDEO_MAX_FRAME) gbuffers = 2; - if (gbufsize < 0 || gbufsize > BTTV_MAX_FBUF) + if (gbufsize > BTTV_MAX_FBUF) gbufsize = BTTV_MAX_FBUF; gbufsize = (gbufsize + PAGE_SIZE - 1) & PAGE_MASK; if (bttv_verbose)