public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iwlwifi: Remove unnecessary code in iwl3945 and iwl4965 drivers
@ 2007-11-10 19:49 Miguel Botón
  2007-11-12  1:08 ` Zhu Yi
  2007-11-15 21:31 ` [PATCH] iwlwifi: remove redundant initialization of final_mode John W. Linville
  0 siblings, 2 replies; 4+ messages in thread
From: Miguel Botón @ 2007-11-10 19:49 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: linux-wireless

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@gmail.com>

Index: linux-2.6.24-rc2/drivers/net/wireless/iwlwifi/iwl3945-base.c
===================================================================
--- linux-2.6.24-rc2.orig/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ linux-2.6.24-rc2/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2377,9 +2377,6 @@
 	case IWL_POWER_AC:
 		final_mode = IWL_POWER_MODE_CAM;
 		break;
-	default:
-		final_mode = mode;
-		break;
 	}
 
 	iwl_update_power_cmd(priv, &cmd, final_mode);
Index: linux-2.6.24-rc2/drivers/net/wireless/iwlwifi/iwl4965-base.c
===================================================================
--- linux-2.6.24-rc2.orig/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ linux-2.6.24-rc2/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -2233,9 +2233,6 @@
 	case IWL_POWER_AC:
 		final_mode = IWL_POWER_MODE_CAM;
 		break;
-	default:
-		final_mode = mode;
-		break;
 	}
 
 	cmd.keep_alive_beacons = 0;

-- 
	Miguel Botón

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-15 21:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-10 19:49 [PATCH] iwlwifi: Remove unnecessary code in iwl3945 and iwl4965 drivers Miguel Botón
2007-11-12  1:08 ` Zhu Yi
2007-11-15 21:31   ` John W. Linville
2007-11-15 21:31 ` [PATCH] iwlwifi: remove redundant initialization of final_mode John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox