Skip to content

Commit f8de067

Browse files
Weili Qianherbertx
authored andcommitted
crypto: hisilicon/qm - use min() instead of min_t()
'act_q_num = min_t(int, act_q_num, max_qp_num)', the type of 'act_q_num' and 'max_qp_num' are both 'u32', so use min() instead of min_t(). Signed-off-by: Weili Qian <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent a292f25 commit f8de067

File tree

1 file changed

+1
-1
lines changed
  • drivers/crypto/hisilicon

1 file changed

+1
-1
lines changed

drivers/crypto/hisilicon/qm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3361,7 +3361,7 @@ static int qm_vf_q_assign(struct hisi_qm *qm, u32 num_vfs)
33613361
act_q_num = q_num;
33623362
}
33633363

3364-
act_q_num = min_t(int, act_q_num, max_qp_num);
3364+
act_q_num = min(act_q_num, max_qp_num);
33653365
ret = hisi_qm_set_vft(qm, i, q_base, act_q_num);
33663366
if (ret) {
33673367
for (j = num_vfs; j > i; j--)

0 commit comments

Comments
 (0)