crypto: hisilicon/qm - remove hisi_qm_get_free_qp_num()
authorWeili Qian <qianweili@huawei.com>
Sat, 16 Apr 2022 10:45:59 +0000 (18:45 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 Apr 2022 09:53:56 +0000 (17:53 +0800)
commitb0c42232fce499ba96fbf2c5ebd2368efeb6597e
tree4879f986253a640881c73207882ba7a53b516068
parent7982996c5b0812cbf7846deff0e2f5dcbf290129
crypto: hisilicon/qm - remove hisi_qm_get_free_qp_num()

hisi_qm_get_free_qp_num() is to get the free queue number on the function.
It is a simple function and is only called by
hisi_qm_get_available_instances().

This patch modifies to get the free queue directly in
hisi_qm_get_available_instances(), and remove hisi_qm_get_free_qp_num().

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c
include/linux/hisi_acc_qm.h