mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-29 04:45:05 +00:00
[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>
This commit is contained in:
parent
883cdd5e3b
commit
437eb18d80
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user