Don't use "{ 0 }" to initialize structures, use "{ }"

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4161 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2011-08-03 05:43:55 +00:00
parent 27d3e317c5
commit e9c7901f6e
6 changed files with 18 additions and 18 deletions

View File

@ -11340,7 +11340,7 @@ static const ctl_table ath_sysctl_template[] = {
.proc_handler = ath_sysctl_halparam, .proc_handler = ath_sysctl_halparam,
.extra2 = (void *)ATH_INTMIT, .extra2 = (void *)ATH_INTMIT,
}, },
{ 0 } { }
}; };
static void static void
@ -11535,21 +11535,21 @@ static ctl_table ath_static_sysctls[] = {
.maxlen = sizeof(ath_xchanmode), .maxlen = sizeof(ath_xchanmode),
.proc_handler = proc_dointvec .proc_handler = proc_dointvec
}, },
{ 0 } { }
}; };
static ctl_table ath_ath_table[] = { static ctl_table ath_ath_table[] = {
{ ATH_INIT_CTL_NAME(DEV_ATH) { ATH_INIT_CTL_NAME(DEV_ATH)
.procname = "ath", .procname = "ath",
.mode = 0555, .mode = 0555,
.child = ath_static_sysctls .child = ath_static_sysctls
}, { 0 } }, { }
}; };
static ctl_table ath_root_table[] = { static ctl_table ath_root_table[] = {
{ ATH_INIT_CTL_NAME(CTL_DEV) { ATH_INIT_CTL_NAME(CTL_DEV)
.procname = "dev", .procname = "dev",
.mode = 0555, .mode = 0555,
.child = ath_ath_table .child = ath_ath_table
}, { 0 } }, { }
}; };
static struct ctl_table_header *ath_sysctl_header; static struct ctl_table_header *ath_sysctl_header;

View File

@ -119,7 +119,7 @@ static struct pci_device_id ath_pci_id_table[] __devinitdata = {
#endif #endif
{ 0x168c, 0x002a, PCI_ANY_ID, PCI_ANY_ID }, /* AR9280 PCI Express */ { 0x168c, 0x002a, PCI_ANY_ID, PCI_ANY_ID }, /* AR9280 PCI Express */
{ 0x168c, 0x9013, PCI_ANY_ID, PCI_ANY_ID }, /* sonicwall */ { 0x168c, 0x9013, PCI_ANY_ID, PCI_ANY_ID }, /* sonicwall */
{ 0 } { }
}; };
static u16 ath_devidmap[][2] = { static u16 ath_devidmap[][2] = {

View File

@ -1025,28 +1025,28 @@ static ctl_table ath_hal_sysctls[] = {
.proc_handler = proc_dointvec .proc_handler = proc_dointvec
}, },
#endif /* AH_DEBUG_ALQ */ #endif /* AH_DEBUG_ALQ */
{ 0 } { }
}; };
static ctl_table ath_hal_table[] = { static ctl_table ath_hal_table[] = {
{ ATH_INIT_CTL_NAME(CTL_AUTO) { ATH_INIT_CTL_NAME(CTL_AUTO)
.procname = "hal", .procname = "hal",
.mode = 0555, .mode = 0555,
.child = ath_hal_sysctls .child = ath_hal_sysctls
}, { 0 } }, { }
}; };
static ctl_table ath_ath_table[] = { static ctl_table ath_ath_table[] = {
{ ATH_INIT_CTL_NAME(DEV_ATH) { ATH_INIT_CTL_NAME(DEV_ATH)
.procname = "ath", .procname = "ath",
.mode = 0555, .mode = 0555,
.child = ath_hal_table .child = ath_hal_table
}, { 0 } }, { }
}; };
static ctl_table ath_root_table[] = { static ctl_table ath_root_table[] = {
{ ATH_INIT_CTL_NAME(CTL_DEV) { ATH_INIT_CTL_NAME(CTL_DEV)
.procname = "dev", .procname = "dev",
.mode = 0555, .mode = 0555,
.child = ath_ath_table .child = ath_ath_table
}, { 0 } }, { }
}; };
static struct ctl_table_header *ath_hal_sysctl_header; static struct ctl_table_header *ath_hal_sysctl_header;

View File

@ -528,28 +528,28 @@ static ctl_table ath_rate_static_sysctls[] = {
.extra2 = &maxint, .extra2 = &maxint,
.proc_handler = proc_dointvec_minmax .proc_handler = proc_dointvec_minmax
}, },
{ 0 } { }
}; };
static ctl_table ath_rate_table[] = { static ctl_table ath_rate_table[] = {
{ ATH_INIT_CTL_NAME(CTL_AUTO) { ATH_INIT_CTL_NAME(CTL_AUTO)
.procname = "rate_amrr", .procname = "rate_amrr",
.mode = 0555, .mode = 0555,
.child = ath_rate_static_sysctls .child = ath_rate_static_sysctls
}, { 0 } }, { }
}; };
static ctl_table ath_ath_table[] = { static ctl_table ath_ath_table[] = {
{ ATH_INIT_CTL_NAME(DEV_ATH) { ATH_INIT_CTL_NAME(DEV_ATH)
.procname = "ath", .procname = "ath",
.mode = 0555, .mode = 0555,
.child = ath_rate_table .child = ath_rate_table
}, { 0 } }, { }
}; };
static ctl_table ath_root_table[] = { static ctl_table ath_root_table[] = {
{ ATH_INIT_CTL_NAME(CTL_DEV) { ATH_INIT_CTL_NAME(CTL_DEV)
.procname = "dev", .procname = "dev",
.mode = 0555, .mode = 0555,
.child = ath_ath_table .child = ath_ath_table
}, { 0 } }, { }
}; };
static struct ctl_table_header *ath_sysctl_header; static struct ctl_table_header *ath_sysctl_header;

View File

@ -474,28 +474,28 @@ static ctl_table ath_rate_static_sysctls[] = {
.maxlen = sizeof(ath_rate_raise_threshold), .maxlen = sizeof(ath_rate_raise_threshold),
.proc_handler = proc_dointvec .proc_handler = proc_dointvec
}, },
{ 0 } { }
}; };
static ctl_table ath_rate_table[] = { static ctl_table ath_rate_table[] = {
{ ATH_INIT_CTL_NAME(CTL_AUTO) { ATH_INIT_CTL_NAME(CTL_AUTO)
.procname = "rate_onoe", .procname = "rate_onoe",
.mode = 0555, .mode = 0555,
.child = ath_rate_static_sysctls .child = ath_rate_static_sysctls
}, { 0 } }, { }
}; };
static ctl_table ath_ath_table[] = { static ctl_table ath_ath_table[] = {
{ ATH_INIT_CTL_NAME(DEV_ATH) { ATH_INIT_CTL_NAME(DEV_ATH)
.procname = "ath", .procname = "ath",
.mode = 0555, .mode = 0555,
.child = ath_rate_table .child = ath_rate_table
}, { 0 } }, { }
}; };
static ctl_table ath_root_table[] = { static ctl_table ath_root_table[] = {
{ ATH_INIT_CTL_NAME(CTL_DEV) { ATH_INIT_CTL_NAME(CTL_DEV)
.procname = "dev", .procname = "dev",
.mode = 0555, .mode = 0555,
.child = ath_ath_table .child = ath_ath_table
}, { 0 } }, { }
}; };
static struct ctl_table_header *ath_sysctl_header; static struct ctl_table_header *ath_sysctl_header;

View File

@ -937,7 +937,7 @@ static const ctl_table ieee80211_sysctl_template[] = {
.mode = 0444, .mode = 0444,
.proc_handler = proc_dostring .proc_handler = proc_dostring
}, },
{ 0 } { }
}; };
void void