Skip to contentSkip to conversation

wifi: iwlwifi: pcie: fix an indent error reported by checkpatch.pl

PATCH New Aiden Leong 1 participant 1 message Jan 5, 2023 Intel wireless wifi link (iwlwifi)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 wifi: iwlwifi: pcie: fix an indent error reported by checkpatch.pl

ERROR: switch and case should be at the same indent
+ switch (REG_CRF_ID_TYPE(val)) {
[...]
+ case REG_CRF_ID_TYPE_FM:

We should use Git post-commit hooks to avoid such errors.

---
 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +3 -3
index 99768d6a6032..eabbab488e1f 100644
@@ -1416,9 +1416,9 @@ static int map_crf_id(struct iwl_trans *iwl_trans)
 	case REG_CRF_ID_TYPE_MR:
 		iwl_trans->hw_rf_id = (IWL_CFG_RF_TYPE_MR << 12);
 		break;
-		case REG_CRF_ID_TYPE_FM:
-			iwl_trans->hw_rf_id = (IWL_CFG_RF_TYPE_FM << 12);
-			break;
+	case REG_CRF_ID_TYPE_FM:
+		iwl_trans->hw_rf_id = (IWL_CFG_RF_TYPE_FM << 12);
+		break;
 	default:
 		ret = -EIO;
 		IWL_ERR(iwl_trans,
Signature · 1 line
2.39.0