firmware: arm_scpi: drop unnecessary type cast to scpi_shared_mem
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 5 Dec 2017 22:17:03 +0000 (23:17 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Fri, 23 Feb 2018 15:12:51 +0000 (15:12 +0000)
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>
drivers/firmware/arm_scpi.c

index 4447af482fe9087e19d851a724dab265c2691a12..e02d58208a94f5194cd7e2c19ff77a7ed66ab598 100644 (file)
@@ -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)