Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sean Young and committed by
Mauro Carvalho Chehab
febfe985 6cb67bea

+1 -1
+1 -1
drivers/media/rc/ir_toy.c
··· 318 318 buf[i] = cpu_to_be16(v); 319 319 } 320 320 321 - buf[count] = 0xffff; 321 + buf[count] = cpu_to_be16(0xffff); 322 322 323 323 irtoy->tx_buf = buf; 324 324 irtoy->tx_len = size;