summaryrefslogtreecommitdiff
path: root/drivers/media/usb/pwc/pwc-v4l.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-05-18 10:50:18 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-05-19 06:57:21 -0300
commit02d978318b0983e7af6bbc9c1f9861b0d6983e37 (patch)
treeee7274b73c9cad932085cc8397392e21e98abb05 /drivers/media/usb/pwc/pwc-v4l.c
parentc2c611b7b4f6cccbaea47e6b4a6853a129ddd1f8 (diff)
[media] atomisp: Fix -Werror=int-in-bool-context compile errors
With gcc-7.1.1 I was getting the following compile error: error: ‘*’ in boolean context, suggest ‘&&’ instead The problem is the definition of CEIL_DIV: #define CEIL_DIV(a, b) ((b) ? ((a) + (b) - 1) / (b) : 0) Which when called as: CEIL_DIV(x, y * z) triggers this error, note we cannot do as the error suggests since b is evaluated multiple times. This commit fixes these compile errors. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/pwc/pwc-v4l.c')
0 files changed, 0 insertions, 0 deletions