Message ID | 20221014093807.3101-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 y7csp89033wrs; Fri, 14 Oct 2022 02:48:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Xb1N6WAmzT96p2EyaR8HHMqwcibWDLduma43K8O53cVJiJUneKiuF43SYlSBJw5yxFnUo X-Received: by 2002:a17:902:c405:b0:181:2355:68ea with SMTP id k5-20020a170902c40500b00181235568eamr4547046plk.70.1665740899884; Fri, 14 Oct 2022 02:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665740899; cv=none; d=google.com; s=arc-20160816; b=YjCOOEz5HVePDyWXzFzUb7AsnyBVoGQpYxcKFPjqpbmnkftr6BwpFvyBf0Dk2QT43m NoLRjyq1U9TxDZBh6AWqSOLaiZiL7d8XP2IdEYfG+T2G+iJG7ZgGK+ZX5yvWtzHYNBC5 XHQ+4YHN3T+assacyIC4B5BkyAlPXV+epif4zFV0tsql7gX5ajmtTz2TZsJLhb+7ms7w sSIMTSKmWUkKJAyzLheyJ3IXTFtAz14vO3+NhH6S0eKD80ZJ5GyGh1mtDgBzFpTrmuPU +23K1AgRySqqw0efqUf2QEkkgxjxap/Bla1sjzjTpW93Hg/OAgz6gLLWgfsuoSNbmli1 OZMg== 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=IfDywsy4fZBasWQwWtRxW2pczZMSbYPHDD4StNsLvyo=; b=l3hCw5DDfL09T9NnXUDFpuDpBU3r0qEUVHpyk7e4L7nHwY5rPZlsW1yWgiqtocBIAw JFt3aNPNKM62fcTXTcB6lNm3uDm35kl9gJuBf1u/aZJXkCR5JUU4Fh5RLodPB4nalwL2 2CFg940jmwwaJYBIVhhXu01F2h0gHutYMAC/lcGlqD8G2Iqj4CEjyoBeecRBFDoAbiKg FBeDZU6GH7nzzeOvjKbJz9LBp9c9rWUSC2nTV3EG5STZl8HJNa61GCJUT2E/N7JnY+9c Of+1oYP50FSZxjnxavMbCPsHO9U0AbDFJaFuh0XrH+k6Jm4056Y2skZPiFHG037mVdW7 w+Kg== 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 t18-20020a170902b21200b00183243cd10esi2431170plr.134.2022.10.14.02.48.05; Fri, 14 Oct 2022 02:48:19 -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 S229732AbiJNJoB (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 14 Oct 2022 05:44:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbiJNJnv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Oct 2022 05:43:51 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DA1C14DF05; Fri, 14 Oct 2022 02:43:50 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MphDH5zTbz1P7CB; Fri, 14 Oct 2022 17:39:11 +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 17:43:48 +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 17:43:48 +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 3/3] crypto: hisilicon/qm - delete redundancy check Date: Fri, 14 Oct 2022 09:38:07 +0000 Message-ID: <20221014093807.3101-4-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221014093807.3101-1-yekai13@huawei.com> References: <20221014093807.3101-1-yekai13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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?1746655929934642225?= X-GMAIL-MSGID: =?utf-8?q?1746655929934642225?= |
Series |
crypto:hisilicon/qm - some misc-fixes by fuzz test
|
|
Commit Message
yekai (A)
Oct. 14, 2022, 9:38 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 661cc964e2eb..318896df1f89 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -4634,9 +4634,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;