Skip to content

Commit

Permalink
gsupplicant: Remove useless NULL pointer check
Browse files Browse the repository at this point in the history
The NULL check is unnecessary, because g_supplicant_interface_scan()
provides a valid pointer. If data were to be NULL, there would have
been a crash already because we already derefence it a few lines
above.
  • Loading branch information
Daniel Wagner authored and pfl committed Dec 3, 2013
1 parent 92472e8 commit 3412d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gsupplicant/supplicant.c
Expand Up @@ -2798,7 +2798,7 @@ static void interface_scan_result(const char *error,
data->interface->scan_data = data->user_data;
}

if (data && data->scan_params)
if (data->scan_params)
g_supplicant_free_scan_params(data->scan_params);

dbus_free(data);
Expand Down

0 comments on commit 3412d72

Please sign in to comment.