From e9c7901f6e7df68cd2bb6ad535008e5360ec5220 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 3 Aug 2011 05:43:55 +0000 Subject: [PATCH] Don't use "{ 0 }" to initialize structures, use "{ }" git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4161 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 8 ++++---- ath/if_ath_pci.c | 2 +- ath_hal/ah_os.c | 8 ++++---- ath_rate/amrr/amrr.c | 8 ++++---- ath_rate/onoe/onoe.c | 8 ++++---- net80211/ieee80211_linux.c | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 9403f87..dfc24bd 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -11340,7 +11340,7 @@ static const ctl_table ath_sysctl_template[] = { .proc_handler = ath_sysctl_halparam, .extra2 = (void *)ATH_INTMIT, }, - { 0 } + { } }; static void @@ -11535,21 +11535,21 @@ static ctl_table ath_static_sysctls[] = { .maxlen = sizeof(ath_xchanmode), .proc_handler = proc_dointvec }, - { 0 } + { } }; static ctl_table ath_ath_table[] = { { ATH_INIT_CTL_NAME(DEV_ATH) .procname = "ath", .mode = 0555, .child = ath_static_sysctls - }, { 0 } + }, { } }; static ctl_table ath_root_table[] = { { ATH_INIT_CTL_NAME(CTL_DEV) .procname = "dev", .mode = 0555, .child = ath_ath_table - }, { 0 } + }, { } }; static struct ctl_table_header *ath_sysctl_header; diff --git a/ath/if_ath_pci.c b/ath/if_ath_pci.c index ae6072e..95069b1 100644 --- a/ath/if_ath_pci.c +++ b/ath/if_ath_pci.c @@ -119,7 +119,7 @@ static struct pci_device_id ath_pci_id_table[] __devinitdata = { #endif { 0x168c, 0x002a, PCI_ANY_ID, PCI_ANY_ID }, /* AR9280 PCI Express */ { 0x168c, 0x9013, PCI_ANY_ID, PCI_ANY_ID }, /* sonicwall */ - { 0 } + { } }; static u16 ath_devidmap[][2] = { diff --git a/ath_hal/ah_os.c b/ath_hal/ah_os.c index e4c2074..b2aa32f 100644 --- a/ath_hal/ah_os.c +++ b/ath_hal/ah_os.c @@ -1025,28 +1025,28 @@ static ctl_table ath_hal_sysctls[] = { .proc_handler = proc_dointvec }, #endif /* AH_DEBUG_ALQ */ - { 0 } + { } }; static ctl_table ath_hal_table[] = { { ATH_INIT_CTL_NAME(CTL_AUTO) .procname = "hal", .mode = 0555, .child = ath_hal_sysctls - }, { 0 } + }, { } }; static ctl_table ath_ath_table[] = { { ATH_INIT_CTL_NAME(DEV_ATH) .procname = "ath", .mode = 0555, .child = ath_hal_table - }, { 0 } + }, { } }; static ctl_table ath_root_table[] = { { ATH_INIT_CTL_NAME(CTL_DEV) .procname = "dev", .mode = 0555, .child = ath_ath_table - }, { 0 } + }, { } }; static struct ctl_table_header *ath_hal_sysctl_header; diff --git a/ath_rate/amrr/amrr.c b/ath_rate/amrr/amrr.c index 70b431f..5af14d8 100644 --- a/ath_rate/amrr/amrr.c +++ b/ath_rate/amrr/amrr.c @@ -528,28 +528,28 @@ static ctl_table ath_rate_static_sysctls[] = { .extra2 = &maxint, .proc_handler = proc_dointvec_minmax }, - { 0 } + { } }; static ctl_table ath_rate_table[] = { { ATH_INIT_CTL_NAME(CTL_AUTO) .procname = "rate_amrr", .mode = 0555, .child = ath_rate_static_sysctls - }, { 0 } + }, { } }; static ctl_table ath_ath_table[] = { { ATH_INIT_CTL_NAME(DEV_ATH) .procname = "ath", .mode = 0555, .child = ath_rate_table - }, { 0 } + }, { } }; static ctl_table ath_root_table[] = { { ATH_INIT_CTL_NAME(CTL_DEV) .procname = "dev", .mode = 0555, .child = ath_ath_table - }, { 0 } + }, { } }; static struct ctl_table_header *ath_sysctl_header; diff --git a/ath_rate/onoe/onoe.c b/ath_rate/onoe/onoe.c index 8b3f489..1b61b88 100644 --- a/ath_rate/onoe/onoe.c +++ b/ath_rate/onoe/onoe.c @@ -474,28 +474,28 @@ static ctl_table ath_rate_static_sysctls[] = { .maxlen = sizeof(ath_rate_raise_threshold), .proc_handler = proc_dointvec }, - { 0 } + { } }; static ctl_table ath_rate_table[] = { { ATH_INIT_CTL_NAME(CTL_AUTO) .procname = "rate_onoe", .mode = 0555, .child = ath_rate_static_sysctls - }, { 0 } + }, { } }; static ctl_table ath_ath_table[] = { { ATH_INIT_CTL_NAME(DEV_ATH) .procname = "ath", .mode = 0555, .child = ath_rate_table - }, { 0 } + }, { } }; static ctl_table ath_root_table[] = { { ATH_INIT_CTL_NAME(CTL_DEV) .procname = "dev", .mode = 0555, .child = ath_ath_table - }, { 0 } + }, { } }; static struct ctl_table_header *ath_sysctl_header; diff --git a/net80211/ieee80211_linux.c b/net80211/ieee80211_linux.c index a7e7bc7..fbe71c3 100644 --- a/net80211/ieee80211_linux.c +++ b/net80211/ieee80211_linux.c @@ -937,7 +937,7 @@ static const ctl_table ieee80211_sysctl_template[] = { .mode = 0444, .proc_handler = proc_dostring }, - { 0 } + { } }; void -- 2.35.1