From 4703dd5200511478a600c3153fd0e5a8c6ba47f9 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 7 Mar 2017 11:23:54 -0600 Subject: [PATCH] wiphy: Remove pointless check wiphy->name is always true since the name member is an array --- src/wiphy.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/wiphy.c b/src/wiphy.c index b6235f89..ff644dc8 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -721,9 +721,6 @@ static bool wiphy_property_get_name(struct l_dbus *dbus, { struct wiphy *wiphy = user_data; - if (!wiphy->name) - return false; - l_dbus_message_builder_append_basic(builder, 's', wiphy->name); return true;