Skip to content

Commit

Permalink
crypto/hisilicon/zip: Europe security code style update
Browse files Browse the repository at this point in the history
1.magic number removing;
2.long function reforming;

Signed-off-by: Zaibo Xu <[email protected]>
  • Loading branch information
zaiboxu authored and Kenneth Lee committed Feb 14, 2019
1 parent 1858bc3 commit 867a34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/hisilicon/zip/zip_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ static int pf_q_num_set(const char *val, const struct kernel_param *kp)
} else {
rev_id = pdev->revision;
switch (rev_id) {
case 0x20:
case QM_HW_VER1_ID:
q_num = HZIP_QUEUE_NUM_V1;
break;
case 0x21:
case QM_HW_VER2_ID:
q_num = HZIP_QUEUE_NUM_V2;
break;
default:
Expand Down

0 comments on commit 867a34f

Please sign in to comment.