mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
media: ir_toy: assignment to be16 should be of correct type
[ Upstream commitfebfe985fc] commitf0c15b360f("media: ir_toy: prevent device from hanging during transmit") removed a cpu_to_be16() cast, which causes a sparse warning. Fixes:f0c15b360f("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
daf15fa1fd
commit
7c1c7ac9d1
|
|
@ -310,7 +310,7 @@ static int irtoy_tx(struct rc_dev *rc, uint *txbuf, uint count)
|
||||||
buf[i] = cpu_to_be16(v);
|
buf[i] = cpu_to_be16(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
buf[count] = 0xffff;
|
buf[count] = cpu_to_be16(0xffff);
|
||||||
|
|
||||||
irtoy->tx_buf = buf;
|
irtoy->tx_buf = buf;
|
||||||
irtoy->tx_len = size;
|
irtoy->tx_len = size;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user