Skip to content

Commit

Permalink
firmware: arm_scmi: mailbox: fix unused var error
Browse files Browse the repository at this point in the history
Log:
drivers/firmware/arm_scmi/transports/mailbox.c: In function ‘mailbox_chan_setup’:
drivers/firmware/arm_scmi/transports/mailbox.c:189:25: error: unused variable ‘res’ [-Werror=unused-variable]
  189 |         struct resource res;
      |                         ^~~
drivers/firmware/arm_scmi/transports/mailbox.c:188:25: error: unused variable ‘size’ [-Werror=unused-variable]
  188 |         resource_size_t size;
      |                         ^~~~
  • Loading branch information
opsiff authored and MingcongBai committed Nov 14, 2024
1 parent 976e1c4 commit a8c7693
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/firmware/arm_scmi/transports/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ static int mailbox_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,
struct scmi_mailbox *smbox;
int ret, a2p_rx_chan, p2a_chan, p2a_rx_chan;
struct mbox_client *cl;
resource_size_t size;
struct resource res;
struct of_phandle_args args;

ret = mailbox_chan_validate(cdev, &a2p_rx_chan, &p2a_chan, &p2a_rx_chan);
Expand Down

0 comments on commit a8c7693

Please sign in to comment.