spi: Fix check for head
adc_queue: Fix queue head check