Skip to content

Commit 9b4eb8f

Browse files
Weili Qianherbertx
authored andcommitted
crypto: hisilicon/qm - update comments to match function
The return values of some functions have been modified, but the comments have not been modified together. The comments must be updated to be consistent with the functions. Also move comments over the codes instead of right place to ensure consistent coding styles. Signed-off-by: Weili Qian <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent ac80056 commit 9b4eb8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/crypto/hisilicon/qm.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,8 +1882,7 @@ static struct hisi_qp *qm_create_qp_nolock(struct hisi_qm *qm, u8 alg_type)
18821882
* @qm: The qm we create a qp from.
18831883
* @alg_type: Accelerator specific algorithm type in sqc.
18841884
*
1885-
* return created qp, -EBUSY if all qps in qm allocated, -ENOMEM if allocating
1886-
* qp memory fails.
1885+
* Return created qp, negative error code if failed.
18871886
*/
18881887
static struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type)
18891888
{
@@ -2052,7 +2051,7 @@ static int qm_start_qp_nolock(struct hisi_qp *qp, unsigned long arg)
20522051
* @arg: Accelerator specific argument.
20532052
*
20542053
* After this function, qp can receive request from user. Return 0 if
2055-
* successful, Return -EBUSY if failed.
2054+
* successful, negative error code if failed.
20562055
*/
20572056
int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg)
20582057
{

include/linux/hisi_acc_qm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ struct hisi_qm {
308308
const struct hisi_qm_err_ini *err_ini;
309309
struct hisi_qm_err_info err_info;
310310
struct hisi_qm_err_status err_status;
311-
unsigned long misc_ctl; /* driver removing and reset sched */
311+
/* driver removing and reset sched */
312+
unsigned long misc_ctl;
312313
/* Device capability bit */
313314
unsigned long caps;
314315

0 commit comments

Comments
 (0)