Skip to content

Commit

Permalink
media: ir_toy: assignment to be16 should be of correct type
Browse files Browse the repository at this point in the history
commit f0c15b3 ("media: ir_toy: prevent device from hanging during
transmit") removed a cpu_to_be16() cast, which causes a sparse warning.

Fixes: f0c15b3 ("media: ir_toy: prevent device from hanging during transmit")
Reported-by: Hans Verkuil <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
seanyoung authored and mchehab committed Oct 19, 2021
1 parent 6cb67be commit febfe98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/rc/ir_toy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit febfe98

Please sign in to comment.