[gnome-control-center] network: Remove use of temporary variable



commit 7fbb1435a91138313e77f121175820ecae4f4f4e
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Mar 10 17:44:09 2017 +0100

    network: Remove use of temporary variable

 panels/network/net-device-wifi.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index a76d234..eabe707 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -499,7 +499,6 @@ static void
 nm_device_wifi_refresh_ui (NetDeviceWifi *device_wifi)
 {
         const gchar *str;
-        gboolean is_hotspot;
         gchar *str_tmp = NULL;
         gint strength = 0;
         guint speed = 0;
@@ -512,8 +511,7 @@ nm_device_wifi_refresh_ui (NetDeviceWifi *device_wifi)
         NetDeviceWifiPrivate *priv = device_wifi->priv;
         GtkWidget *dialog;
 
-        is_hotspot = device_is_hotspot (device_wifi);
-        if (is_hotspot) {
+        if (device_is_hotspot (device_wifi)) {
                 nm_device_wifi_refresh_hotspot (device_wifi);
                 return;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]