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:
Dan Williams 2013-08-06 11:01:04 -05:00
parent 0c8d8b4da3
commit 1f084567f0

View file

@ -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)) {