settings: remove an unnecessary check

Coverity gets confused and thinks we are potentially leaking bssid_str
here. Given that nm_utils_hwaddr_ntoa() never returns NULL anyway,
just drop the check.
This commit is contained in:
Dan Winship 2014-06-12 12:21:59 -04:00
parent 3c13d9e3fd
commit f4f4ecf159

View file

@ -1815,7 +1815,6 @@ nm_settings_connection_add_seen_bssid (NMSettingsConnection *connection,
/* Add the new BSSID; let the hash take ownership of the allocated BSSID string */
bssid_str = nm_utils_hwaddr_ntoa (seen_bssid, ARPHRD_ETHER);
g_return_if_fail (bssid_str != NULL);
g_hash_table_insert (priv->seen_bssids, mac_dup (seen_bssid), bssid_str);
/* Build up a list of all the BSSIDs in string form */