aboutsummaryrefslogtreecommitdiffstats
path: root/airpcap_loader.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-04-16 07:59:48 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-04-16 07:59:48 +0000
commit9380f962a2d694183b9ce20830b5943d3ea7b7fb (patch)
tree722a0221205b9032ebb30a13f3976f218d69192c /airpcap_loader.c
parent53155a11c0a111179c1ee8ad3b2327b127d0ac14 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=42090
Diffstat (limited to 'airpcap_loader.c')
-rw-r--r--airpcap_loader.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/airpcap_loader.c b/airpcap_loader.c
index 98288ba57c..537bdf289e 100644
--- a/airpcap_loader.c
+++ b/airpcap_loader.c
@@ -350,11 +350,6 @@ write_wlan_wep_keys_to_registry(airpcap_if_info_t* info_if, GList* key_list)
keys_in_list = g_list_length(key_list);
/*
- * Save the encryption keys, if we have any of them
- */
- KeysCollectionSize = 0;
-
- /*
* Calculate the size of the keys collection
*/
KeysCollectionSize = sizeof(AirpcapKeysCollection) + keys_in_list * sizeof(AirpcapKey);
@@ -454,11 +449,6 @@ write_wlan_driver_wep_keys_to_registry(GList* key_list)
keys_in_list++;
/*
- * Save the encryption keys, if we have any of them
- */
- KeysCollectionSize = 0;
-
- /*
* Calculate the size of the keys collection
*/
KeysCollectionSize = sizeof(AirpcapKeysCollection) + keys_in_list * sizeof(AirpcapKey);
@@ -1966,7 +1956,6 @@ merge_key_list(GList* list1, GList* list2)
if(list1 == NULL)
{
- n1 = 0;
n2 = g_list_length(list2);
for(i=0;i<n2;i++)
@@ -1987,7 +1976,6 @@ merge_key_list(GList* list1, GList* list2)
else if(list2 == NULL)
{
n1 = g_list_length(list1);
- n2 = 0;
for(i=0;i<n1;i++)
{
@@ -2204,7 +2192,6 @@ key_lists_are_equal(GList* list1, GList* list2)
/* if(n1 != n2) return FALSE; */
if(wep_n1 != wep_n2) return FALSE;
- n1 = wep_n1;
n2 = wep_n2;
/*for(i=0;i<n1;i++)
@@ -2326,14 +2313,12 @@ static guint
set_on_off(pref_t *pref, gpointer ud)
{
gboolean *is_on;
- gboolean number;
/* Retrieve user data info */
is_on = (gboolean*)ud;
if (g_ascii_strncasecmp(pref->name, "enable_decryption", 17) == 0 && pref->type == PREF_BOOL)
{
- number = *pref->varp.boolp;
if(*is_on)
*pref->varp.boolp = TRUE;