[PATCH 5.12 044/677] iio: magnetometer: yas530: Fix return value on error path