summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2018-12-21 11:35:35 +0100
committerMark Brown <broonie@kernel.org>2019-01-07 18:31:14 +0000
commit983f6ae944c273c3a64e30f451b60d40398afc8a (patch)
tree6644ff1ccb855a5cc54bbb55db38cbca14bd85d6 /include/trace
parent560b097c77ccdfa22586718e9e45f85e86ef2156 (diff)
downloadlinux-0-day-983f6ae944c273c3a64e30f451b60d40398afc8a.tar.gz
linux-0-day-983f6ae944c273c3a64e30f451b60d40398afc8a.tar.xz
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/spi.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/trace/events/spi.h b/include/trace/events/spi.h
index 277bb9d257793..6eb014f59efb2 100644
--- a/include/trace/events/spi.h
+++ b/include/trace/events/spi.h
@@ -129,10 +129,9 @@ DECLARE_EVENT_CLASS(spi_transfer,
__entry->len = xfer->len;
),
- TP_printk("spi%d.%d %p len=%d", (int)__entry->bus_num,
- (int)__entry->chip_select,
- (struct spi_message *)__entry->xfer,
- (int)__entry->len)
+ TP_printk("spi%d.%d %p len=%d",
+ __entry->bus_num, __entry->chip_select,
+ __entry->xfer, __entry->len)
);
DEFINE_EVENT(spi_transfer, spi_transfer_start,