From a6aa9d3e2681199d159963e46524625d90669619 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 7 Dec 2011 10:19:10 -0200 Subject: vnc: Simplify vnc_display_password() Drop the qerror_report() call from it and let its callers set the error themselves. This also allows for dropping the 'ret' variable. Signed-off-by: Luiz Capitulino --- console.h | 1 - 1 file changed, 1 deletion(-) (limited to 'console.h') diff --git a/console.h b/console.h index 9466886b59..be3b7c8b4f 100644 --- a/console.h +++ b/console.h @@ -384,7 +384,6 @@ int vnc_display_pw_expire(DisplayState *ds, time_t expires); #else static inline int vnc_display_password(DisplayState *ds, const char *password) { - qerror_report(QERR_FEATURE_DISABLED, "vnc"); return -ENODEV; } static inline int vnc_display_pw_expire(DisplayState *ds, time_t expires) -- cgit v1.2.3