mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 20:30:13 +01:00
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:
parent
3c13d9e3fd
commit
f4f4ecf159
1 changed files with 0 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue