diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-10-07 06:02:22 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-11-14 15:00:37 -0500 |
commit | 170173bf37342dab486daaa2a0381d802c10fb21 (patch) | |
tree | a99f014b284002d5924fa39348ecf51bb3ab655a | |
parent | 068ee6e204e1f48ba24ec91ce40f5ca833a57a81 (diff) |
batman-adv: Remove instant overwritten variable initialization
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
-rw-r--r-- | net/batman-adv/sysfs.c | 2 | ||||
-rw-r--r-- | net/batman-adv/translation-table.c | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/net/batman-adv/sysfs.c b/net/batman-adv/sysfs.c index fa3cc1af0918..84a55cb19b0b 100644 --- a/net/batman-adv/sysfs.c +++ b/net/batman-adv/sysfs.c | |||
@@ -688,7 +688,7 @@ int batadv_throw_uevent(struct batadv_priv *bat_priv, enum batadv_uev_type type, | |||
688 | enum batadv_uev_action action, const char *data) | 688 | enum batadv_uev_action action, const char *data) |
689 | { | 689 | { |
690 | int ret = -ENOMEM; | 690 | int ret = -ENOMEM; |
691 | struct batadv_hard_iface *primary_if = NULL; | 691 | struct batadv_hard_iface *primary_if; |
692 | struct kobject *bat_kobj; | 692 | struct kobject *bat_kobj; |
693 | char *uevent_env[4] = { NULL, NULL, NULL, NULL }; | 693 | char *uevent_env[4] = { NULL, NULL, NULL, NULL }; |
694 | 694 | ||
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index dd2c2545cfef..9f5705fcf426 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -256,8 +256,8 @@ void batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr, | |||
256 | int ifindex) | 256 | int ifindex) |
257 | { | 257 | { |
258 | struct batadv_priv *bat_priv = netdev_priv(soft_iface); | 258 | struct batadv_priv *bat_priv = netdev_priv(soft_iface); |
259 | struct batadv_tt_local_entry *tt_local = NULL; | 259 | struct batadv_tt_local_entry *tt_local; |
260 | struct batadv_tt_global_entry *tt_global = NULL; | 260 | struct batadv_tt_global_entry *tt_global; |
261 | struct hlist_head *head; | 261 | struct hlist_head *head; |
262 | struct hlist_node *node; | 262 | struct hlist_node *node; |
263 | struct batadv_tt_orig_list_entry *orig_entry; | 263 | struct batadv_tt_orig_list_entry *orig_entry; |
@@ -544,7 +544,7 @@ uint16_t batadv_tt_local_remove(struct batadv_priv *bat_priv, | |||
544 | const uint8_t *addr, const char *message, | 544 | const uint8_t *addr, const char *message, |
545 | bool roaming) | 545 | bool roaming) |
546 | { | 546 | { |
547 | struct batadv_tt_local_entry *tt_local_entry = NULL; | 547 | struct batadv_tt_local_entry *tt_local_entry; |
548 | uint16_t flags, curr_flags = BATADV_NO_FLAGS; | 548 | uint16_t flags, curr_flags = BATADV_NO_FLAGS; |
549 | 549 | ||
550 | tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr); | 550 | tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr); |
@@ -784,8 +784,8 @@ int batadv_tt_global_add(struct batadv_priv *bat_priv, | |||
784 | const unsigned char *tt_addr, uint8_t flags, | 784 | const unsigned char *tt_addr, uint8_t flags, |
785 | uint8_t ttvn) | 785 | uint8_t ttvn) |
786 | { | 786 | { |
787 | struct batadv_tt_global_entry *tt_global_entry = NULL; | 787 | struct batadv_tt_global_entry *tt_global_entry; |
788 | struct batadv_tt_local_entry *tt_local_entry = NULL; | 788 | struct batadv_tt_local_entry *tt_local_entry; |
789 | int ret = 0; | 789 | int ret = 0; |
790 | int hash_added; | 790 | int hash_added; |
791 | struct batadv_tt_common_entry *common; | 791 | struct batadv_tt_common_entry *common; |
@@ -1067,7 +1067,7 @@ static void batadv_tt_global_del(struct batadv_priv *bat_priv, | |||
1067 | const unsigned char *addr, | 1067 | const unsigned char *addr, |
1068 | const char *message, bool roaming) | 1068 | const char *message, bool roaming) |
1069 | { | 1069 | { |
1070 | struct batadv_tt_global_entry *tt_global_entry = NULL; | 1070 | struct batadv_tt_global_entry *tt_global_entry; |
1071 | struct batadv_tt_local_entry *local_entry = NULL; | 1071 | struct batadv_tt_local_entry *local_entry = NULL; |
1072 | 1072 | ||
1073 | tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr); | 1073 | tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr); |
@@ -1670,7 +1670,7 @@ static bool | |||
1670 | batadv_send_other_tt_response(struct batadv_priv *bat_priv, | 1670 | batadv_send_other_tt_response(struct batadv_priv *bat_priv, |
1671 | struct batadv_tt_query_packet *tt_request) | 1671 | struct batadv_tt_query_packet *tt_request) |
1672 | { | 1672 | { |
1673 | struct batadv_orig_node *req_dst_orig_node = NULL; | 1673 | struct batadv_orig_node *req_dst_orig_node; |
1674 | struct batadv_orig_node *res_dst_orig_node = NULL; | 1674 | struct batadv_orig_node *res_dst_orig_node = NULL; |
1675 | struct batadv_neigh_node *neigh_node = NULL; | 1675 | struct batadv_neigh_node *neigh_node = NULL; |
1676 | struct batadv_hard_iface *primary_if = NULL; | 1676 | struct batadv_hard_iface *primary_if = NULL; |
@@ -1805,7 +1805,7 @@ static bool | |||
1805 | batadv_send_my_tt_response(struct batadv_priv *bat_priv, | 1805 | batadv_send_my_tt_response(struct batadv_priv *bat_priv, |
1806 | struct batadv_tt_query_packet *tt_request) | 1806 | struct batadv_tt_query_packet *tt_request) |
1807 | { | 1807 | { |
1808 | struct batadv_orig_node *orig_node = NULL; | 1808 | struct batadv_orig_node *orig_node; |
1809 | struct batadv_neigh_node *neigh_node = NULL; | 1809 | struct batadv_neigh_node *neigh_node = NULL; |
1810 | struct batadv_hard_iface *primary_if = NULL; | 1810 | struct batadv_hard_iface *primary_if = NULL; |
1811 | uint8_t my_ttvn, req_ttvn, ttvn; | 1811 | uint8_t my_ttvn, req_ttvn, ttvn; |
@@ -1971,7 +1971,7 @@ static void _batadv_tt_update_changes(struct batadv_priv *bat_priv, | |||
1971 | static void batadv_tt_fill_gtable(struct batadv_priv *bat_priv, | 1971 | static void batadv_tt_fill_gtable(struct batadv_priv *bat_priv, |
1972 | struct batadv_tt_query_packet *tt_response) | 1972 | struct batadv_tt_query_packet *tt_response) |
1973 | { | 1973 | { |
1974 | struct batadv_orig_node *orig_node = NULL; | 1974 | struct batadv_orig_node *orig_node; |
1975 | 1975 | ||
1976 | orig_node = batadv_orig_hash_find(bat_priv, tt_response->src); | 1976 | orig_node = batadv_orig_hash_find(bat_priv, tt_response->src); |
1977 | if (!orig_node) | 1977 | if (!orig_node) |
@@ -2013,7 +2013,7 @@ static void batadv_tt_update_changes(struct batadv_priv *bat_priv, | |||
2013 | 2013 | ||
2014 | bool batadv_is_my_client(struct batadv_priv *bat_priv, const uint8_t *addr) | 2014 | bool batadv_is_my_client(struct batadv_priv *bat_priv, const uint8_t *addr) |
2015 | { | 2015 | { |
2016 | struct batadv_tt_local_entry *tt_local_entry = NULL; | 2016 | struct batadv_tt_local_entry *tt_local_entry; |
2017 | bool ret = false; | 2017 | bool ret = false; |
2018 | 2018 | ||
2019 | tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr); | 2019 | tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr); |