Skip to contentSkip to conversation

crypto: hisilicon - delete redundant '\n'

PATCH In review Hui Tang 2 participants 2 messages Mar 27, 2021 – Apr 2, 2021

Subsystems (3)
lore
Share & tools
lore

Hui Tang

author
#0 lore raw

PATCH 1/1 crypto: hisilicon - delete redundant '\n'

It has newline already by sysfs, so delete redundant '\n'

---
 drivers/crypto/hisilicon/hpre/hpre_main.c | 4 ++--
 drivers/crypto/hisilicon/sec2/sec_main.c  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/crypto/hisilicon/hpre/hpre_main.c +2 -2
index 73ee997..3c56d33 100644
@@ -814,9 +814,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;
drivers/crypto/hisilicon/sec2/sec_main.c +1 -1
index 226475d..b7c62a1 100644
@@ -810,7 +810,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;
Signature · 1 line
2.8.1
maintainer
#1 lore raw
Quoted 7 lines · Hui Tang

It has newline already by sysfs, so delete redundant '\n'

---
 drivers/crypto/hisilicon/hpre/hpre_main.c | 4 ++--
 drivers/crypto/hisilicon/sec2/sec_main.c  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt