diff options
Diffstat (limited to 'util/error.c')
-rw-r--r-- | util/error.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/util/error.c b/util/error.c index b5ccbd8..934a78e 100644 --- a/util/error.c +++ b/util/error.c @@ -103,10 +103,6 @@ void error_setg_errno_internal(Error **errp, va_list ap; int saved_errno = errno; - if (errp == NULL) { - return; - } - va_start(ap, fmt); error_setv(errp, src, line, func, ERROR_CLASS_GENERIC_ERROR, fmt, ap, os_errno != 0 ? strerror(os_errno) : NULL); |