mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
crypto: qat - use min_t macro
prefer min_t() macro over two open-coded logical tests Signed-off-by: Bruce Allan <[email protected]> Signed-off-by: Tadeusz Struk <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
45cff26080
commit
df0088f507
1 changed files with 2 additions and 2 deletions
|
|
@ -901,8 +901,8 @@ static int qat_uclo_set_ae_mode(struct icp_qat_fw_loader_handle *handle)
|
|||
(unsigned long *)&handle->hal_handle->ae_mask))
|
||||
continue;
|
||||
ae_data = &obj_handle->ae_data[ae];
|
||||
for (s = 0; s < ae_data->slice_num && s < ICP_QAT_UCLO_MAX_CTX;
|
||||
s++) {
|
||||
for (s = 0; s < min_t(unsigned int, ae_data->slice_num,
|
||||
ICP_QAT_UCLO_MAX_CTX); s++) {
|
||||
if (!obj_handle->ae_data[ae].ae_slices[s].encap_image)
|
||||
continue;
|
||||
uof_image = ae_data->ae_slices[s].encap_image->img_ptr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue