OSDN Git Service

thermal: Remove debug or error messages in get_temp() ops
[tomoyo/tomoyo-test1.git] / drivers / thermal / thermal-generic-adc.c
index 2c283e7..017b0ce 100644 (file)
@@ -59,10 +59,9 @@ static int gadc_thermal_get_temp(struct thermal_zone_device *tz, int *temp)
        int ret;
 
        ret = iio_read_channel_processed(gti->channel, &val);
-       if (ret < 0) {
-               dev_err(gti->dev, "IIO channel read failed %d\n", ret);
+       if (ret < 0)
                return ret;
-       }
+
        *temp = gadc_thermal_adc_to_temp(gti, val);
 
        return 0;