[PATCH 02/31] mtd: spi-nor: Tidy up error handling / debug code