firmware: arm_scpi: drop unnecessary type cast to scpi_shared_mem
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 5 Oct 2017 10:31:36 +0000 (11:31 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 9 Oct 2017 09:17:16 +0000 (10:17 +0100)
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.

Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scpi.c

index c923d1e..a888970 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)