Skip to content

Commit

Permalink
firmware: arm_scpi: drop unnecessary type cast to scpi_shared_mem
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sudeep Holla committed Oct 9, 2017
1 parent 5c7ae64 commit 1b36633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/arm_scpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1b36633

Please sign in to comment.