]> git.baikalelectronics.ru Git - kernel.git/commit
spi/trace: drop useless and wrong (but harmless) casts
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 21 Dec 2018 10:35:35 +0000 (11:35 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 18:31:14 +0000 (18:31 +0000)
commit806102d0f206152cefaf103c3788f09007ab5e75
tree6644ff1ccb855a5cc54bbb55db38cbca14bd85d6
parent10ab16dc6d896d28cae910f25d5eca620ead822b
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>
include/trace/events/spi.h