diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-10-04 11:01:47 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-15 13:00:04 -0300 |
commit | 437eb18d804dbf7386e4ae46738facfd3074229f (patch) | |
tree | 1e38eea632a5f7e8f91c542ca280fadd325adf7e /drivers/media/radio | |
parent | 883cdd5e3b71703d95b3d414abd8bef1b6217dd0 (diff) | |
download | op-kernel-dev-437eb18d804dbf7386e4ae46738facfd3074229f.zip op-kernel-dev-437eb18d804dbf7386e4ae46738facfd3074229f.tar.gz |
[media] radio-keene: fix sparse warning
drivers/media/radio/radio-keene.c:126:45: warning: dubious: !x | y
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/radio-keene.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |