Message ID | 20230105073540.8119-1-aiden.leong@aibsd.com |
---|---|
State | New |
Headers | show |
Series | [v2] wifi: iwlwifi: pcie: fix an indent error reported by checkpatch.pl | expand |
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c index 99768d6a6032..eabbab488e1f 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c @@ -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,
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. Signed-off-by: Aiden Leong <aiden.leong@aibsd.com> --- drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)