Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1908452pxx; Sat, 31 Oct 2020 02:12:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzklr620Z5GDDu1rmpi5v+smMbHz+Jbhuuiap0QvfH0lgu91rlGa/VaruXWLjC175j7zw4c X-Received: by 2002:a05:6402:1d85:: with SMTP id dk5mr7015663edb.240.1604135531299; Sat, 31 Oct 2020 02:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604135531; cv=none; d=google.com; s=arc-20160816; b=PBTx+RZB4DexK8tsaneYoOFLeStbhRYqxpnQoJ4isg+Xnq8EThajs0e56Qqnq+jBvt 9UuEOtdfVHJ5ASlAgtFHR4vTmuYAv25nDRVi2noNvL8pVa2LS9Os1izcdRcn7mM2inX/ WeENQfEp0KZnD3cwPvEVOpYYU0XAMYSmeVuAf+AWKAVqdqbJAzO7VQUWNsiYlCtBxA6l cSRx/oxfTBXgBgCPsJsTOgIL/kOodW/JyaRQUptu2lQ2DuTG7xT6Q7XfnOpmIIkZpnAd Zrk09Rgv1xIq+CDlo7ApnJa8L6HLRKNTWnZxYb9ORZ0KDMF01Oj5Vz1+6YddJqbnI/Ra HfPA== 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=FQkkwoGjOZ8FMwauEeKu0XCBkuUBV44zGvaTwiaRfpM=; b=q9bwyqlMVEbY+M5jZ5dnsynqJn2IwOhlZYZ8rKNqyKpgwG90BLHAXJqc3wOd5vkMyl /mKC3rB3uLyL6XUs+gCGhsyzA8kAn5DN3V2LAektkzT+qgvbCw+8Yh2Tw2UOzi++Ub5S wBnxMOgzM3J3e4PF9n6H+hoeLDCrZCWZXFClmaBl0vm/2Mc8K/tcaqHiKVNfG02eaYPO uiGEEPdd0+qSc5mtjOLLTFBltwlLpNLMh2sBS1R0l+diOWrm25IKBH6eC6zPO1a+/PYq xyDX94GGPOxVL5l9kS36vtriOu+n0WdKpN95bXBZDwTaNUN4Xoic/NPY0vRFC14EYVmU W75A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si4899382edv.237.2020.10.31.02.11.48; Sat, 31 Oct 2020 02:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726576AbgJaJJ0 (ORCPT + 99 others); Sat, 31 Oct 2020 05:09:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7019 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbgJaJIn (ORCPT ); Sat, 31 Oct 2020 05:08:43 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CNYJ951GTzhcdf; Sat, 31 Oct 2020 17:08:41 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Sat, 31 Oct 2020 17:08:34 +0800 From: Weili Qian To: , CC: , , , Subject: [PATCH 4/8] crypto: hisilicon/qm - modify return type of 'qm_set_sqctype' Date: Sat, 31 Oct 2020 17:07:04 +0800 Message-ID: <1604135228-18410-5-git-send-email-qianweili@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1604135228-18410-1-git-send-email-qianweili@huawei.com> References: <1604135228-18410-1-git-send-email-qianweili@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Since 'qm_set_sqctype' always returns 0, change it as 'void'. Signed-off-by: Weili Qian Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/qm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 627479f..17f84db 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -2118,7 +2118,7 @@ static void hisi_qm_uacce_stop_queue(struct uacce_queue *q) hisi_qm_stop_qp(q->priv); } -static int qm_set_sqctype(struct uacce_queue *q, u16 type) +static void qm_set_sqctype(struct uacce_queue *q, u16 type) { struct hisi_qm *qm = q->uacce->priv; struct hisi_qp *qp = q->priv; @@ -2126,8 +2126,6 @@ static int qm_set_sqctype(struct uacce_queue *q, u16 type) down_write(&qm->qps_lock); qp->alg_type = type; up_write(&qm->qps_lock); - - return 0; } static long hisi_qm_uacce_ioctl(struct uacce_queue *q, unsigned int cmd, -- 2.8.1