media: ir_toy: assignment to be16 should be of correct type
Subsystems (2)
Sean Young
maintainerPATCH 1/1 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 <[email protected]>
Signed-off-by Sean Young <[email protected]>
--- drivers/media/rc/ir_toy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/rc/ir_toy.c +1 -1
@@ -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;
Signature · 1 line
2.31.1