svn commit: r367771 - head/sbin/nvmecontrol
Jessica Clarke
jrtc27 at freebsd.org
Tue Nov 17 17:32:24 UTC 2020
On 17 Nov 2020, at 17:29, Jessica Clarke <jrtc27 at freebsd.org> wrote:
> On 17 Nov 2020, at 17:12, Adrian Chadd <adrian at FreeBSD.org> wrote:
>> @@ -175,8 +176,7 @@ update_firmware(int fd, uint8_t *payload, int32_t payl
>> errx(EX_OSERR, "unable to malloc %zd bytes", (size_t)max_xfer_size);
>>
>> while (resid > 0) {
>> - size = (resid >= (int32_t)max_xfer_size) ?
>> - max_xfer_size : resid;
>> + size = (resid >= max_xfer_size) ? max_xfer_size : resid;
>
> MIN from the already-included sys/param.h?
>
> (Otherwise: you have an extra space after ?)
Also why is off signed when it counts up from 0?
Jess
More information about the svn-src-all
mailing list