Message ID | 20221014100319.5259-4-yekai13@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp99467wrs; Fri, 14 Oct 2022 03:15:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ecx+g4qrUmcZG771YaK0J2mOsErYTggTSi0mtnmjMuC+R+/gJNIaDa/iXxJXDtHq3zdV2 X-Received: by 2002:a17:90b:4a51:b0:20d:4ded:3c26 with SMTP id lb17-20020a17090b4a5100b0020d4ded3c26mr16194215pjb.23.1665742553239; Fri, 14 Oct 2022 03:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665742553; cv=none; d=google.com; s=arc-20160816; b=bU165fzUQINM7UbyYdyEdnbu8AhXO+zAryKgPNBFZLrpLXG2rhArCK48nMdpVWXvjn XNWPtQ8w4skvlAZAuT3DSIkDl1+YrlIUz9JJFNCkbN2k0X4zsGA1JNt0mxz7cwW1aHKU OynVApPKNSp0ArUo4CVOHf5UwsaP/J7sQjqjWvGatH3EapVUlqJRG4hlTBpxGRN56/NI 97/O9vEqZz8acuOQf3hUuau9T573uDHwxGI8Z98Kd7d34u52c9y07emel4b+anv1ld9H zXpnhWKxeXauofzs1AlKqyZPK66vdNu0jytkwEAIj+yAwVkdaAJvfujESjYRwyCDKjKp 555A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=thi3XuDv5vw8t+0z3omISxYNIexCY4+Q50HY9zNJ5rQ=; b=QeB1vZcjNAGW6WQyKAEWb9ZlDZnXTpWeUEu7Vw/gmZpY09EPB2oOcHooNVIvYiPhL2 fFRS21s/KwfJinh/v6zqQweN9kqfWfVgKTYH9giPwfinAXaNbG08NkXc5Lww49PJw6Gw GvVCSHWtJhnPgVrNPV3YQEjGU6eQ+h+0EDKaBidIt+x5vFLN0Mc6gGSwoclgRhjuBTYC rgrOqZ4BlV3PddDEkInrh6krevcWFPHN7k0XtjQyH1yj/wrOjb6aPWIRQumTTsMyBdud s4FrMpMY8l8hTlejyhzF81poca2u7tXzkzctw6sM+UKsCEO2JVKleMhB7lk3hsTzXWoD 8M5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb5-20020a17090b4a4500b0020ab4faf62dsi2725948pjb.159.2022.10.14.03.15.39; Fri, 14 Oct 2022 03:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbiJNKJk (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 14 Oct 2022 06:09:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbiJNKJM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Oct 2022 06:09:12 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D92E0181DA2; Fri, 14 Oct 2022 03:09:03 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MphnN61XnzmVLp; Fri, 14 Oct 2022 18:04:24 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 18:09:02 +0800 Received: from huawei.com (10.67.165.24) by dggpeml100012.china.huawei.com (7.185.36.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 18:09:02 +0800 From: Kai Ye <yekai13@huawei.com> To: <herbert@gondor.apana.org.au> CC: <linux-crypto@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <wangzhou1@hisilicon.com>, <yekai13@huawei.com> Subject: [PATCH v2 3/3] crypto: hisilicon/qm - delete redundancy check Date: Fri, 14 Oct 2022 10:03:19 +0000 Message-ID: <20221014100319.5259-4-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221014100319.5259-1-yekai13@huawei.com> References: <20221014100319.5259-1-yekai13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml100012.china.huawei.com (7.185.36.121) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746657663356483344?= X-GMAIL-MSGID: =?utf-8?q?1746657663356483344?= |
Series |
crypto:hisilicon/qm - some misc-fixes by fuzz test
|
|
Commit Message
yekai (A)
Oct. 14, 2022, 10:03 a.m. UTC
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>
---
drivers/crypto/hisilicon/qm.c | 3 ---
1 file changed, 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;