e1000e: use static params to save stack space (part 2)
authorBruce Allan <bruce.w.allan@intel.com>
Mon, 10 May 2010 14:59:10 +0000 (14:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 May 2010 06:31:09 +0000 (23:31 -0700)
A couple stack cleanups missed in an earlier patch from Jesse.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/param.c

index 0f4077c3d538d70258e90f5029ce87a3ba100420..a150e48a117f2da94ff73727252263672e51bb8f 100644 (file)
@@ -286,7 +286,7 @@ void __devinit e1000e_check_options(struct e1000_adapter *adapter)
                }
        }
        { /* Receive Interrupt Delay */
-               struct e1000_option opt = {
+               static struct e1000_option opt = {
                        .type = range_option,
                        .name = "Receive Interrupt Delay",
                        .err  = "using default of "
@@ -386,7 +386,7 @@ void __devinit e1000e_check_options(struct e1000_adapter *adapter)
                }
        }
        { /* Interrupt Mode */
-               struct e1000_option opt = {
+               static struct e1000_option opt = {
                        .type = range_option,
                        .name = "Interrupt Mode",
                        .err  = "defaulting to 2 (MSI-X)",