mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 16:08:02 +02:00
ifcfg-rh: don't require an error for read_mac_address()
No reason to; the caller knows success/failure from the return value and might want to ignore the error.
This commit is contained in:
parent
0c8d8b4da3
commit
1f084567f0
1 changed files with 2 additions and 2 deletions
|
|
@ -255,8 +255,8 @@ read_mac_address (shvarFile *ifcfg, const char *key, int type,
|
|||
g_return_val_if_fail (ifcfg != NULL, FALSE);
|
||||
g_return_val_if_fail (array != NULL, FALSE);
|
||||
g_return_val_if_fail (*array == NULL, FALSE);
|
||||
g_return_val_if_fail (error != NULL, FALSE);
|
||||
g_return_val_if_fail (*error == NULL, FALSE);
|
||||
if (error)
|
||||
g_return_val_if_fail (*error == NULL, FALSE);
|
||||
|
||||
value = svGetValue (ifcfg, key, FALSE);
|
||||
if (!value || !strlen (value)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue