From: Sean Young Date: Wed, 13 Oct 2021 08:14:10 +0000 (+0100) Subject: media: ir_toy: assignment to be16 should be of correct type X-Git-Tag: v6.6.17~8751^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=febfe985fc2ea052a363f6525ff624b8efd5273c;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/ir_toy.c b/drivers/media/rc/ir_toy.c index 71aced5..7e98e7e 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;