The patch titled iwlwifi: remove unnecessary code in iwl3945 and iwl4965 drivers has been added to the -mm tree. Its filename is iwlwifi-remove-unnecessary-code-in-iwl3945-and-iwl4965-drivers.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: iwlwifi: remove unnecessary code in iwl3945 and iwl4965 drivers From: Miguel Boton <mboton@xxxxxxxxx> Remove unnecesary code in iwl3945 and iwl4965 drivers. "final_mode" variable is already initialized with the value of the "mode" variable. Signed-off-by: Miguel Boton <mboton@xxxxxxxxx> Cc: "John W. Linville" <linville@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/net/wireless/iwlwifi/iwl3945-base.c | 3 --- drivers/net/wireless/iwlwifi/iwl4965-base.c | 3 --- 2 files changed, 6 deletions(-) diff -puN drivers/net/wireless/iwlwifi/iwl3945-base.c~iwlwifi-remove-unnecessary-code-in-iwl3945-and-iwl4965-drivers drivers/net/wireless/iwlwifi/iwl3945-base.c --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c~iwlwifi-remove-unnecessary-code-in-iwl3945-and-iwl4965-drivers +++ a/drivers/net/wireless/iwlwifi/iwl3945-base.c @@ -2153,9 +2153,6 @@ static int iwl_send_power_mode(struct iw case IWL_POWER_AC: final_mode = IWL_POWER_MODE_CAM; break; - default: - final_mode = mode; - break; } iwl_update_power_cmd(priv, &cmd, final_mode); diff -puN drivers/net/wireless/iwlwifi/iwl4965-base.c~iwlwifi-remove-unnecessary-code-in-iwl3945-and-iwl4965-drivers drivers/net/wireless/iwlwifi/iwl4965-base.c --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c~iwlwifi-remove-unnecessary-code-in-iwl3945-and-iwl4965-drivers +++ a/drivers/net/wireless/iwlwifi/iwl4965-base.c @@ -2232,9 +2232,6 @@ static int iwl_send_power_mode(struct iw case IWL_POWER_AC: final_mode = IWL_POWER_MODE_CAM; break; - default: - final_mode = mode; - break; } cmd.keep_alive_beacons = 0; _ Patches currently in -mm which might be from mboton@xxxxxxxxx are iwlwifi-remove-unnecessary-code-in-iwl3945-and-iwl4965-drivers.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html