summaryrefslogtreecommitdiff
path: root/drivers/firmware/arm_scpi.c
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2017-12-05 23:17:03 +0100
committerSudeep Holla <sudeep.holla@arm.com>2018-02-23 15:12:51 +0000
commit27901cccf8dd7b9e8d77c2637a2b306d731e567d (patch)
tree5b13804c0a7a904c89ae33f6f9416a220faa2f92 /drivers/firmware/arm_scpi.c
parent83a6060c0cd07cafdf8baa08e26c602a06977a2c (diff)
firmware: arm_scpi: drop unnecessary type cast to scpi_shared_mem
This patch drops the only present type cast of the SCPI payload pointer to scpi_shared_mem inorder to align with other occurrences, IOW for consistency. Tested-by: Kevin Hilman <khilman@baylibre.com> Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scpi.c')
-rw-r--r--drivers/firmware/arm_scpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
index 4447af482fe9..e02d58208a94 100644
--- a/drivers/firmware/arm_scpi.c
+++ b/drivers/firmware/arm_scpi.c
@@ -453,7 +453,7 @@ static void scpi_tx_prepare(struct mbox_client *c, void *msg)
unsigned long flags;
struct scpi_xfer *t = msg;
struct scpi_chan *ch = container_of(c, struct scpi_chan, cl);
- struct scpi_shared_mem *mem = (struct scpi_shared_mem *)ch->tx_payload;
+ struct scpi_shared_mem *mem = ch->tx_payload;
if (t->tx_buf) {
if (scpi_info->is_legacy)