crypto: hisilicon/hpre - delete redundant '\n'
authorHui Tang <tanghui20@huawei.com>
Sat, 27 Mar 2021 08:32:45 +0000 (16:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Apr 2021 07:28:14 +0000 (18:28 +1100)
It has newline already by sysfs, so delete redundant '\n'

Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_main.c
drivers/crypto/hisilicon/sec2/sec_main.c

index 6696ea5..a8c7921 100644 (file)
@@ -752,9 +752,9 @@ static int hpre_qm_init(struct hisi_qm *qm, struct pci_dev *pdev)
        }
 
        if (pdev->revision >= QM_HW_V3)
-               qm->algs = "rsa\ndh\necdh\nx25519\nx448\necdsa\nsm2\n";
+               qm->algs = "rsa\ndh\necdh\nx25519\nx448\necdsa\nsm2";
        else
-               qm->algs = "rsa\ndh\n";
+               qm->algs = "rsa\ndh";
        qm->mode = uacce_mode;
        qm->pdev = pdev;
        qm->ver = pdev->revision;
index b1818f7..d38b893 100644 (file)
@@ -744,7 +744,7 @@ static int sec_qm_init(struct hisi_qm *qm, struct pci_dev *pdev)
 
        qm->pdev = pdev;
        qm->ver = pdev->revision;
-       qm->algs = "cipher\ndigest\naead\n";
+       qm->algs = "cipher\ndigest\naead";
        qm->mode = uacce_mode;
        qm->sqe_size = SEC_SQE_SIZE;
        qm->dev_name = sec_name;