drivers: flash: stm32: qspi: use ternary and asserts in quad prepare

Use ternary operation and asserts to reduce the footprint
and code size.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
1 file changed