/* Read registers 0x42 through 0x46 */
        ret = adc5_read(adc, ADC5_USR_DIG_PARAM, buf, sizeof(buf));
-       if (ret < 0)
+       if (ret)
                return ret;
 
        /* Digital param selection */
 
        if (adc->poll_eoc) {
                ret = adc5_poll_wait_eoc(adc);
-               if (ret < 0) {
+               if (ret) {
                        pr_err("EOC bit not set\n");
                        goto unlock;
                }
                if (!ret) {
                        pr_debug("Did not get completion timeout.\n");
                        ret = adc5_poll_wait_eoc(adc);
-                       if (ret < 0) {
+                       if (ret) {
                                pr_err("EOC bit not set\n");
                                goto unlock;
                        }
        default:
                return -EINVAL;
        }
-
-       return 0;
 }
 
 static int adc7_read_raw(struct iio_dev *indio_dev,
 
                ret = adc5_read(adc, ADC5_USR_REVISION1, dig_version,
                                                        sizeof(dig_version));
-               if (ret < 0) {
+               if (ret) {
                        dev_err(dev, "Invalid dig version read %d\n", ret);
                        return ret;
                }