wireless: Clean up some inconsistent indenting
Subsystems (3)
PATCH 1/1 wireless: Clean up some inconsistent indenting
Eliminate the follow smatch warnings:
drivers/net/wireless/marvell/mwifiex/pcie.c:3376 mwifiex_unregister_dev() warn: inconsistent indenting drivers/net/wireless/marvell/mwifiex/uap_event.c:285 mwifiex_process_uap_event() warn: inconsistent indenting drivers/net/wireless/marvell/mwifiex/sta_event.c:797 mwifiex_process_sta_event() warn: inconsistent indenting
--- drivers/net/wireless/marvell/mwifiex/pcie.c | 2 +- drivers/net/wireless/marvell/mwifiex/sta_event.c | 2 +- drivers/net/wireless/marvell/mwifiex/uap_event.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/marvell/mwifiex/pcie.c +1 -1
@@ -3373,7 +3373,7 @@ static void mwifiex_unregister_dev(struct mwifiex_adapter *adapter) }else {mwifiex_dbg (adapter,INFO ,"%s(): calling free_irq()\n" , __func__); -free_irq (card->dev->irq, &card->share_irq_ctx); +free_irq (card->dev->irq, &card->share_irq_ctx);if (card->msi_enable)pci_disable_msi (pdev);
drivers/net/wireless/marvell/mwifiex/sta_event.c +1 -1
@@ -794,7 +794,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv) MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET)) adapter->ps_state =PS_STATE_SLEEP ; -return 0 ; +return 0 ; } } adapter->ps_state =PS_STATE_AWAKE ;
drivers/net/wireless/marvell/mwifiex/uap_event.c +1 -1
@@ -282,7 +282,7 @@ int mwifiex_process_uap_event(struct mwifiex_private *priv) MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET)) adapter->ps_state =PS_STATE_SLEEP ; -return 0 ; +return 0 ; } } adapter->ps_state =PS_STATE_AWAKE ;
Signature · 1 line
1.8.3.1
Quoted 9 lines · Yang Li
Eliminate the follow smatch warnings:
drivers/net/wireless/marvell/mwifiex/pcie.c:3376mwifiex_unregister_dev()warn: inconsistent indentingdrivers/net/wireless/marvell/mwifiex/uap_event.c:285mwifiex_process_uap_event()warn: inconsistent indentingdrivers/net/wireless/marvell/mwifiex/sta_event.c:797mwifiex_process_sta_event()warn: inconsistent indenting
Quoted 6 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- drivers/net/wireless/marvell/mwifiex/pcie.c | 2 +- drivers/net/wireless/marvell/mwifiex/sta_event.c | 2 +- drivers/net/wireless/marvell/mwifiex/uap_event.c | 2 +-
The subject prefix should be "mwifiex:", I can fix it.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Brian Norris
maintainerHi,
Quoted 9 lines · Yang Li
Eliminate the follow smatch warnings:
drivers/net/wireless/marvell/mwifiex/pcie.c:3376mwifiex_unregister_dev()warn: inconsistent indentingdrivers/net/wireless/marvell/mwifiex/uap_event.c:285mwifiex_process_uap_event()warn: inconsistent indentingdrivers/net/wireless/marvell/mwifiex/sta_event.c:797mwifiex_process_sta_event()warn: inconsistent indenting
Thanks for looking at the smatch warnings! But I think you've taken the wrong action on two of them. See below.
Quoted 26 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- drivers/net/wireless/marvell/mwifiex/pcie.c | 2 +- drivers/net/wireless/marvell/mwifiex/sta_event.c | 2 +- drivers/net/wireless/marvell/mwifiex/uap_event.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/net/wireless/marvell/mwifiex/pcie.c +1
-1@@ -3373,7 +3373,7 @@ static void mwifiex_unregister_dev(struct mwifiex_adapter *adapter) }else {mwifiex_dbg (adapter,INFO ,"%s(): calling free_irq()\n" , __func__); -free_irq (card->dev->irq, &card->share_irq_ctx); +free_irq (card->dev->irq, &card->share_irq_ctx);if (card->msi_enable)pci_disable_msi (pdev);drivers/net/wireless/marvell/mwifiex/sta_event.c +0
-0
drivers/net/wireless/marvell/mwifiex/sta_event.c int mwifiex_process_sta_event(struct mwifiex_private *priv) · line 797
Quoted 5 lines
drivers/net/wireless/marvell/mwifiex/sta_event.c +1
-1@@ -794,7 +794,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv) MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET)) adapter->ps_state =PS_STATE_SLEEP ; -return 0 ; +return 0 ;
Hmm, I have a strong suspicion that the *indentation* was actually correct, and your stylistic warning actually signals that the braces are incorrect. See how the assignment to 'ps_state' is clobbered just a few lines below; I suspect the failure to send a null packet is supposed to mean we should exit this function immediately, and all other cases are supposed to continue.
drivers/net/wireless/marvell/mwifiex/uap_event.c int mwifiex_process_uap_event(struct mwifiex_private *priv) · line 285
Quoted 13 lines
drivers/net/wireless/marvell/mwifiex/sta_event.c +0
-0} } adapter->ps_state =PS_STATE_AWAKE ;drivers/net/wireless/marvell/mwifiex/uap_event.c +1
-1@@ -282,7 +282,7 @@ int mwifiex_process_uap_event(struct mwifiex_private *priv) MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET)) adapter->ps_state =PS_STATE_SLEEP ; -return 0 ; +return 0 ;
Same here.
Brian
Quoted 6 lines
drivers/net/wireless/marvell/mwifiex/uap_event.c +0
-1} } adapter->ps_state =PS_STATE_AWAKE ; --1.8.3.1