summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/smartcard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/smartcard.c b/server/smartcard.c
index 805cb6e1..eb2823aa 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -428,8 +428,7 @@ static void smartcard_channel_write_to_reader(VSCMsgHeader *vheader)
uint32_t n;
uint32_t actual_length = vheader->length;
- spice_assert(vheader->reader_id >= 0 &&
- vheader->reader_id <= g_smartcard_readers.num);
+ spice_assert(vheader->reader_id <= g_smartcard_readers.num);
sin = g_smartcard_readers.sin[vheader->reader_id];
sif = SPICE_CONTAINEROF(sin->base.sif, SpiceCharDeviceInterface, base);
/* protocol requires messages to be in network endianess */