[network-manager-applet] wifi: remove some dead code
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] wifi: remove some dead code
- Date: Tue, 8 Mar 2016 12:41:42 +0000 (UTC)
commit eaac8bdff6790d3984a0cf973a7f7f7c8c232745
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Tue Mar 8 11:35:30 2016 +0100
wifi: remove some dead code
The world is a better place now.
CID 59916 (#1 of 2): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach the expression "" inside this
statement: if (!strcmp((band ? band : ....
src/connection-editor/page-wifi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/page-wifi.c b/src/connection-editor/page-wifi.c
index 98acc84..8215cb3 100644
--- a/src/connection-editor/page-wifi.c
+++ b/src/connection-editor/page-wifi.c
@@ -352,10 +352,10 @@ populate_ui (CEPageWifi *self)
gtk_widget_set_sensitive (GTK_WIDGET (priv->channel), FALSE);
if (band) {
- if (!strcmp (band ? band : "", "a")) {
+ if (!strcmp (band, "a")) {
band_idx = 1;
gtk_widget_set_sensitive (GTK_WIDGET (priv->channel), TRUE);
- } else if (!strcmp (band ? band : "", "bg")) {
+ } else if (!strcmp (band, "bg")) {
band_idx = 2;
gtk_widget_set_sensitive (GTK_WIDGET (priv->channel), TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]