diff options
author | Sean Young <sean@mess.org> | 2021-10-13 10:14:10 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-10-19 09:08:39 +0200 |
commit | febfe985fc2ea052a363f6525ff624b8efd5273c (patch) | |
tree | a91d3424996cf0248ef8178a0d2a062cc0c0a15f /drivers/media | |
parent | media: ivtv: fix build for UML (diff) | |
download | linux-febfe985fc2ea052a363f6525ff624b8efd5273c.tar.xz linux-febfe985fc2ea052a363f6525ff624b8efd5273c.zip |
media: ir_toy: assignment to be16 should be of correct type
commit f0c15b360fb6 ("media: ir_toy: prevent device from hanging during
transmit") removed a cpu_to_be16() cast, which causes a sparse warning.
Fixes: f0c15b360fb6 ("media: ir_toy: prevent device from hanging during transmit")
Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/rc/ir_toy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/ir_toy.c b/drivers/media/rc/ir_toy.c index 71aced52248f..7e98e7e3aace 100644 --- a/drivers/media/rc/ir_toy.c +++ b/drivers/media/rc/ir_toy.c @@ -318,7 +318,7 @@ static int irtoy_tx(struct rc_dev *rc, uint *txbuf, uint count) buf[i] = cpu_to_be16(v); } - buf[count] = 0xffff; + buf[count] = cpu_to_be16(0xffff); irtoy->tx_buf = buf; irtoy->tx_len = size; |