• Hans Verkuil's avatar
    s3c-camif: fix compiler warnings · fb095146
    Hans Verkuil authored
    commit 7e0d4e92 upstream.
    
    Fix these compiler warnings that appeared after switching to gcc-5.1.0:
    
    drivers/media/platform/s3c-camif/camif-capture.c: In function 'sensor_set_power':
    drivers/media/platform/s3c-camif/camif-capture.c:118:10: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
      if (!on == camif->sensor.power_count)
              ^
    drivers/media/platform/s3c-camif/camif-capture.c: In function 'sensor_set_streaming':
    drivers/media/platform/s3c-camif/camif-capture.c:134:10: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
      if (!on == camif->sensor.stream_count)
              ^
    Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Cc: Kamil Debski <k.debski@samsung.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    fb095146
camif-capture.c 42.6 KB