mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 02:38:08 +02:00
core: trivial change in nm_ap_set_ssid
Simplify check in nm_ap_set_ssid(). Note that previously there was no bug here in case of self assignment, this just makes it more explicit. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
3c52e383f9
commit
71cb57ba35
1 changed files with 1 additions and 1 deletions
|
|
@ -794,7 +794,7 @@ nm_ap_set_ssid (NMAccessPoint *ap, const GByteArray * ssid)
|
|||
|
||||
priv = NM_AP_GET_PRIVATE (ap);
|
||||
|
||||
if ((ssid == priv->ssid) && ssid == NULL)
|
||||
if (ssid == priv->ssid)
|
||||
return;
|
||||
|
||||
/* same SSID */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue