Commit 983f6ae9 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

spi/trace: drop useless and wrong (but harmless) casts

bus_num, chip_select and len are already ints, so there is no gain in
casting them to int. xfer is a pointer to a struct spi_transfer. Casting
that to struct spi_message * is wrong but as only the pointer value is
used for the %p format specifier no harm is done.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 560b097c
...@@ -129,10 +129,9 @@ DECLARE_EVENT_CLASS(spi_transfer, ...@@ -129,10 +129,9 @@ DECLARE_EVENT_CLASS(spi_transfer,
__entry->len = xfer->len; __entry->len = xfer->len;
), ),
TP_printk("spi%d.%d %p len=%d", (int)__entry->bus_num, TP_printk("spi%d.%d %p len=%d",
(int)__entry->chip_select, __entry->bus_num, __entry->chip_select,
(struct spi_message *)__entry->xfer, __entry->xfer, __entry->len)
(int)__entry->len)
); );
DEFINE_EVENT(spi_transfer, spi_transfer_start, DEFINE_EVENT(spi_transfer, spi_transfer_start,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment