diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-27 20:47:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-27 20:47:57 +0000 |
commit | e6ec5d8f50cfe15496599f6e281c02a419c34963 (patch) | |
tree | 7f19873232d11d049954b7b5abcd0b8e9613c092 /ui/gtk/airpcap_gui_utils.c | |
parent | d7279caa933967a85c208da250ac660d84a8ab4f (diff) |
From Evan Huus in bug 7295:
cppcheck realized that if_info is known not to be null in that code
path, and therefore that checking whether it's null in that code path is
unnecessary. Remove it.
svn path=/trunk/; revision=42867
Diffstat (limited to 'ui/gtk/airpcap_gui_utils.c')
-rw-r--r-- | ui/gtk/airpcap_gui_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/airpcap_gui_utils.c b/ui/gtk/airpcap_gui_utils.c index f626271767..927128001f 100644 --- a/ui/gtk/airpcap_gui_utils.c +++ b/ui/gtk/airpcap_gui_utils.c @@ -674,7 +674,7 @@ airpcap_update_channel_combo(GtkWidget* channel_cb, airpcap_if_info_t* if_info) gtk_combo_box_text_remove(GTK_COMBO_BOX_TEXT(channel_cb), 0); } - if (if_info != NULL && if_info->pSupportedChannels != NULL && if_info->numSupportedChannels > 0){ + if (if_info->pSupportedChannels != NULL && if_info->numSupportedChannels > 0){ guint i; for (i = 0; i<(if_info->numSupportedChannels); i++){ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(channel_cb), ieee80211_mhz_to_str(airpcap_if_selected->pSupportedChannels[i].Frequency)); |