spi: stm32: use normal conditional statements instead of ternary operator