PWM input: Fixed code style

This commit is contained in:
Lorenz Meier
2015-10-19 13:17:15 +02:00
parent 9e34124210
commit 06076189da
+2
View File
@@ -302,6 +302,7 @@ PWMIN::init()
CDev::init();
_reports = new ringbuffer::RingBuffer(2, sizeof(struct pwm_input_s));
if (_reports == nullptr) {
return -ENOMEM;
}
@@ -490,6 +491,7 @@ PWMIN::read(struct file *filp, char *buffer, size_t buflen)
buf++;
}
}
/* if there was no data, warn the caller */
return ret ? ret : -EAGAIN;
}