diff options
author | Alon Levy <alevy@redhat.com> | 2011-06-29 12:06:51 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-06-29 12:06:51 +0200 |
commit | 392bb921dc985baf748dead1c29a93ae808aed4f (patch) | |
tree | ce2c59478161dbcba8df85a10f4a8cf740a53cc6 | |
parent | 5ff78b617da31d4b28f22293e4d82772576758ac (diff) | |
download | spice-392bb921dc985baf748dead1c29a93ae808aed4f.tar.gz spice-392bb921dc985baf748dead1c29a93ae808aed4f.tar.xz spice-392bb921dc985baf748dead1c29a93ae808aed4f.zip |
Revert "server/smartcard: don't register the channel if no hardware emulated"
This reverts commit 456ff9f8d5d27ac763e89e67a100661084695dc5.
That patch just disabled the smartcard channel completely because
the check was done *before* the initialization of the qemu smartcard
devices, not after.
-rw-r--r-- | server/smartcard.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/smartcard.c b/server/smartcard.c index 7830c9a1..f948e5b2 100644 --- a/server/smartcard.c +++ b/server/smartcard.c @@ -538,10 +538,6 @@ void smartcard_channel_init(void) { Channel *channel; - /* don't register the channel if no hardware registered */ - if (g_smartcard_readers.num == 0) { - return; - } channel = spice_new0(Channel, 1); channel->type = SPICE_CHANNEL_SMARTCARD; channel->link = smartcard_link; @@ -549,3 +545,4 @@ void smartcard_channel_init(void) channel->migrate = smartcard_migrate; reds_register_channel(channel); } + |