V4L/DVB: video: testing unsigned for less than 0

soc_mbus_bytes_per_line() returns -EINVAL on error but we store it in an
unsigned int so the test for less than zero doesn't work. I think it
always returns "small" positive values so we can just cast it to int
here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by Dan Carpenter and committed by Mauro Carvalho Chehab 981cbef2 b7d41d6d

+1 -1
+1 -1
drivers/media/video/sh_mobile_ceu_camera.c
··· 1633 height = pix->height; 1634 1635 pix->bytesperline = soc_mbus_bytes_per_line(width, xlate->host_fmt); 1636 - if (pix->bytesperline < 0) 1637 return pix->bytesperline; 1638 pix->sizeimage = height * pix->bytesperline; 1639
··· 1633 height = pix->height; 1634 1635 pix->bytesperline = soc_mbus_bytes_per_line(width, xlate->host_fmt); 1636 + if ((int)pix->bytesperline < 0) 1637 return pix->bytesperline; 1638 pix->sizeimage = height * pix->bytesperline; 1639