Fix using s as index to array before check
Fix using s as index to array before check

The patch fixes the using of s as index to array
sensor_info before check.

Issue: GMINL-2312
Change-Id: I17f474526c9e48bc598e067106738d50b87398a5
Signed-off-by: Viorel Suman <72d8484a870aac119b693dc3c90bd5b5a23a1bf9@intel.com>

01org/android-iio-sensors-hal,01org/android-iio-sensors-hal