flash/stm32l4x: fix scan-build warnings