projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d7a6c
)
crypto: hisilicon/qm - delete redundancy check
author
Kai Ye
<yekai13@huawei.com>
Sat, 22 Oct 2022 01:17:46 +0000
(
01:17
+0000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 28 Oct 2022 04:36:34 +0000
(12:36 +0800)
Because the permission on the VF debugfs file is "0444". So
the VF function checking is redundant in qos writing api.
Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/hisilicon/qm.c
b/drivers/crypto/hisilicon/qm.c
index
80eeb96
..
363a028
100644
(file)
--- a/
drivers/crypto/hisilicon/qm.c
+++ b/
drivers/crypto/hisilicon/qm.c
@@
-4632,9
+4632,6
@@
static ssize_t qm_algqos_write(struct file *filp, const char __user *buf,
unsigned long val;
int len, ret;
- if (qm->fun_type == QM_HW_VF)
- return -EINVAL;
-
if (*pos != 0)
return 0;