Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3050165pxk; Mon, 7 Sep 2020 01:26:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytuZUpUQFMgvjlkIo28pXLL+pIx+2ftJEOeVDZuezortt/x3319/pZtZJ5Zo8NK3ajYRyP X-Received: by 2002:a05:6402:1818:: with SMTP id g24mr9929695edy.332.1599467162402; Mon, 07 Sep 2020 01:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599467162; cv=none; d=google.com; s=arc-20160816; b=ULyAoX7BP7L5lHBf5dZIHfappIeHShz1wb9tDdgnDCYSHT7qeG+37rUVmknyOChC7x y7lPtnaXUbMwQRrnl4oAaP9ng9+KvT3oadt6ILICZ/V9UmJE/WKw/qr/weHg1okFi2Ag WjTRlg4DcYVWOCdRxSIFz4A+ay8SKMLHcSJiexiBhoz3D9vwGZ02laPoEt1XaJui7VEj yCPPIsxP9KOjiXX9kKYMOXRkbphfHtLLxjuBYrSJ4EZvDGJZ1BV/2ExW9Dt8l84pXWCY bxhYKuOCa6LZkcUf3WwA7229X/EQ/QtVoYTYvimHyo1QeC50Uhvrt5uMUGCvdkDPKw87 6LDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=UtdFla9Pl871ZFx8YpoWPTTB7ZlDLDppvv6dm8Gw3jI=; b=dv3uGKSzwKstyhTcbT95mK6Ba+s8DDpDOBltakunrbNqG7lVpzHUgUivEDm34DM6iE qz5pg2aKOQPi8aeNVluMHlcLHjVUfpOkZfiAuQ9tgPdBls6YZaeE+hIdg2iFsWcEisM8 UY0p0yNo0e+Um+n7Yhs92theDvk3WzhdC96YbxIOwtjiK7IXjHXXQpQYFFOyYzq/LtWj FE6RnR5IrUKWycuSguHXF+8Hjdq3UIDUe2azuYImZ3GiQpMIHylAbel4JFhzy3YMbnSB 3cWoZAwIJqemIk53alyKO8nK/sDm74kV0lm7nVj8th5xij0KMWbcx6WFsSngRhcpUP+3 gPzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 p8si4644868edi.48.2020.09.07.01.25.39; Mon, 07 Sep 2020 01:26:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728112AbgIGIYu (ORCPT + 99 others); Mon, 7 Sep 2020 04:24:50 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:10778 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727970AbgIGIYj (ORCPT ); Mon, 7 Sep 2020 04:24:39 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id DAD722C7C1FDC1E444CD; Mon, 7 Sep 2020 16:24:34 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Sep 2020 16:24:23 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH v2 01/10] crypto: hisilicon/zip - remove some useless parameters Date: Mon, 7 Sep 2020 16:21:53 +0800 Message-ID: <1599466922-10323-2-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599466922-10323-1-git-send-email-shenyang39@huawei.com> References: <1599466922-10323-1-git-send-email-shenyang39@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 1.Remove the macro 'HZIP_VF_NUM'. 2.Remove 'list' of the struct 'hisi_zip' Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip.h | 1 - drivers/crypto/hisilicon/zip/zip_main.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip.h b/drivers/crypto/hisilicon/zip/zip.h index 4484be1..4b3aae8 100644 --- a/drivers/crypto/hisilicon/zip/zip.h +++ b/drivers/crypto/hisilicon/zip/zip.h @@ -39,7 +39,6 @@ struct hisi_zip_ctrl; struct hisi_zip { struct hisi_qm qm; - struct list_head list; struct hisi_zip_ctrl *ctrl; struct hisi_zip_dfx dfx; }; diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index 7e86b0f..445db04 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -17,7 +17,6 @@ #define PCI_DEVICE_ID_ZIP_PF 0xa250 #define PCI_DEVICE_ID_ZIP_VF 0xa251 -#define HZIP_VF_NUM 63 #define HZIP_QUEUE_NUM_V1 4096 #define HZIP_QUEUE_NUM_V2 1024 -- 2.7.4