OSDN Git Service

[media] exynos4-is: Cleanup a define in mipi-csis driver
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Nov 2013 09:52:24 +0000 (06:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 4 Dec 2013 17:51:55 +0000 (15:51 -0200)
commite1163236f5214e3447f1132a355a26db3db7d9f3
tree23e864d824cfe4a64b9392d446656da7cc3ce821
parent03ce1a13ccdfa61bf8f3bdcc7f10e2580db71149
[media] exynos4-is: Cleanup a define in mipi-csis driver

This define is only used in s5pcsis_irq_handler():
if ((status & S5PCSIS_INTSRC_NON_IMAGE_DATA) && pktbuf->data) {
The problem is that "status" is a 32 bit and (0xff << 28) is larger than
32 bits and that sets off a static checker warning.  I consulted with
Sylwester Nawrocki and the define should actually be (0xf << 28).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/exynos4-is/mipi-csis.c