Revert "server/smartcard: don't register the channel if no hardware emulated"

This reverts commit 456ff9f8d5.

That patch just disabled the smartcard channel completely because
the check was done *before* the initialization of the qemu smartcard
devices, not after.
This commit is contained in:
Alon Levy 2011-06-29 12:06:51 +02:00
parent 5ff78b617d
commit 392bb921dc

View File

@ -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);
}