| Date: | 2010-04-07 11:41:14 (3 years 1 month ago) |
|---|---|
| Author: | Dan Carpenter |
| Commit: | 981cbef2c30ee82d6011bb2ef50461f6a074de71 |
| Message: | 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> |
| Files: |
drivers/media/video/sh_mobile_ceu_camera.c (1 diff) |
Change Details
| drivers/media/video/sh_mobile_ceu_camera.c | ||
|---|---|---|
| 1633 | 1633 | height = pix->height; |
| 1634 | 1634 | |
| 1635 | 1635 | pix->bytesperline = soc_mbus_bytes_per_line(width, xlate->host_fmt); |
| 1636 | if (pix->bytesperline < 0) | |
| 1636 | if ((int)pix->bytesperline < 0) | |
| 1637 | 1637 | return pix->bytesperline; |
| 1638 | 1638 | pix->sizeimage = height * pix->bytesperline; |
| 1639 | 1639 | |
Branches:
ben-wpan
ben-wpan-stefan
5396a9238205f20f811ea57898980d3ca82df0b6
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9
