aboutsummaryrefslogtreecommitdiff
path: root/console.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-12-07 10:19:10 -0200
committerLuiz Capitulino <lcapitulino@redhat.com>2012-01-18 10:23:38 -0200
commita6aa9d3e2681199d159963e46524625d90669619 (patch)
tree4372e0694baa343a67169491f7b20f0916376be2 /console.h
parent8c4ec5c0269bda18bb777a64b2008088d1c632dc (diff)
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 <lcapitulino@redhat.com>
Diffstat (limited to 'console.h')
-rw-r--r--console.h1
1 files changed, 0 insertions, 1 deletions
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)