spi: Fix double "when"