ALSA: seq: Fix assignment in if condition
[linux-2.6-microblaze.git] / sound / core / seq / seq_fifo.c
index eaaa8b5..f8e02e9 100644 (file)
@@ -143,7 +143,8 @@ static struct snd_seq_event_cell *fifo_cell_out(struct snd_seq_fifo *f)
 {
        struct snd_seq_event_cell *cell;
 
-       if ((cell = f->head) != NULL) {
+       cell = f->head;
+       if (cell) {
                f->head = cell->next;
 
                /* reset tail if this was the last element */