buffer = (uint32_t *)transfer->buffer;
- number_samples = (devc->remaining_samples < max_samples) ?
- devc->remaining_samples : max_samples;
+ number_samples = MIN(devc->remaining_samples, max_samples);
devc->remaining_samples -= number_samples;
send_data(sdi, buffer, number_samples);
sr_dbg("Remaining: %d %08X %08X.", devc->remaining_samples,
buffer++;
/* Fallthrough. */
case H4032L_STATUS_TRANSFER:
- number_samples = (devc->remaining_samples < max_samples) ?
- devc->remaining_samples : max_samples;
+ number_samples = MIN(devc->remaining_samples, max_samples);
devc->remaining_samples -= number_samples;
send_data(sdi, buffer, number_samples);
sr_dbg("Remaining: %d %08X %08X.", devc->remaining_samples,