From: Hans Verkuil Date: Fri, 4 Oct 2013 14:01:47 +0000 (-0300) Subject: [media] radio-keene: fix sparse warning X-Git-Tag: firefly_0821_release~176^2~3573^2~1260 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=437eb18d804dbf7386e4ae46738facfd3074229f;p=firefly-linux-kernel-4.4.55.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 21db23b196be..fa3964022b96 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;