Merge branch 'liblockdep-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git] / drivers / staging / dgnc / dgnc_neo.c
index dc5a138..cf22c7b 100644 (file)
@@ -1201,7 +1201,8 @@ static void neo_copy_data_from_uart_to_queue(struct channel_t *ch)
        ch->ch_cached_lsr = 0;
 
        /* Store how much space we have left in the queue */
-       if ((qleft = tail - head - 1) < 0)
+       qleft = tail - head - 1;
+       if (qleft < 0)
                qleft += RQUEUEMASK + 1;
 
        /*