Skip to content

Commit

Permalink
wifi: mwifiex: mark a variable unused
Browse files Browse the repository at this point in the history
We need to read a value from the device to wake it, but if it
succeeds we don't really care about it. Mark the variable to
avoid a compiler warning.

Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/20220904212910.5d67f55178a1.If0789ab326935896e5886fa06dbb9ef0da6c0b41@changeid
  • Loading branch information
jmberg-intel authored and Kalle Valo committed Sep 7, 2022
1 parent 9d5b665 commit 3208ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/marvell/mwifiex/pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static int mwifiex_pm_wakeup_card(struct mwifiex_adapter *adapter)
{
struct pcie_service_card *card = adapter->card;
const struct mwifiex_pcie_card_reg *reg = card->pcie.reg;
int retval;
int retval __maybe_unused;

mwifiex_dbg(adapter, EVENT,
"event: Wakeup device...\n");
Expand Down

0 comments on commit 3208ae4

Please sign in to comment.