diff options
author | Kai Ye <yekai13@huawei.com> | 2022-10-22 04:17:46 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-10-28 07:36:34 +0300 |
commit | 8f82f4ae8946d665f1e38da8e2b39b929d2435b1 (patch) | |
tree | 93af29b9422b77a2a224d311b5aa789bb8d554c5 /drivers/crypto/hisilicon | |
parent | 22d7a6c39cabab811f42cb2daed2343c87b0aca5 (diff) | |
download | linux-8f82f4ae8946d665f1e38da8e2b39b929d2435b1.tar.xz |
crypto: hisilicon/qm - delete redundancy check
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>
Diffstat (limited to 'drivers/crypto/hisilicon')
-rw-r--r-- | drivers/crypto/hisilicon/qm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 80eeb966cf89..363a02810a16 100644 --- 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; |