confile_utils: cleanup new_hwaddr()

parent ffb7e0f6
...@@ -778,8 +778,7 @@ bool new_hwaddr(char *hwaddr) ...@@ -778,8 +778,7 @@ bool new_hwaddr(char *hwaddr)
rand() % 255, rand() % 255); rand() % 255, rand() % 255);
#endif #endif
if (ret < 0 || ret >= 18) { if (ret < 0 || ret >= 18) {
SYSERROR("Failed to call snprintf()"); return log_error_errno(false, EIO, "Failed to call snprintf()");
return false;
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment