From: Hans Verkuil Date: Fri, 4 Oct 2013 14:01:47 +0000 (-0300) Subject: [media] radio-keene: fix sparse warning X-Git-Tag: v3.13-rc1~47^2~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=437eb18d804dbf7386e4ae46738facfd3074229f;p=platform%2Fkernel%2Flinux-stable.git [media] radio-keene: fix sparse warning drivers/media/radio/radio-keene.c:126:45: warning: dubious: !x | y Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/radio/radio-keene.c b/drivers/media/radio/radio-keene.c index 21db23b..fa39640 100644 --- a/drivers/media/radio/radio-keene.c +++ b/drivers/media/radio/radio-keene.c @@ -123,7 +123,7 @@ static int keene_cmd_set(struct keene_device *radio) /* If bit 0 is set, then transmit mono, otherwise stereo. If bit 2 is set, then enable 75 us preemphasis, otherwise it is 50 us. */ - radio->buffer[3] = (!radio->stereo) | (radio->preemph_75_us ? 4 : 0); + radio->buffer[3] = (radio->stereo ? 0 : 1) | (radio->preemph_75_us ? 4 : 0); radio->buffer[4] = 0x00; radio->buffer[5] = 0x00; radio->buffer[6] = 0x00;