提交 febfe985 编写于 作者: S Sean Young 提交者: Mauro Carvalho Chehab

media: ir_toy: assignment to be16 should be of correct type

commit f0c15b36 ("media: ir_toy: prevent device from hanging during
transmit") removed a cpu_to_be16() cast, which causes a sparse warning.

Fixes: f0c15b36 ("media: ir_toy: prevent device from hanging during transmit")
Reported-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 6cb67bea
...@@ -318,7 +318,7 @@ static int irtoy_tx(struct rc_dev *rc, uint *txbuf, uint count) ...@@ -318,7 +318,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册