Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp970042rwb; Tue, 27 Sep 2022 06:56:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7G+nWzW7tFgU7dodXJvUhioKhzNtrUJbIkAGb2IQwiJDWF9mHqVIyhTKiS1aAbbAD0Kg2h X-Received: by 2002:a05:6402:35c1:b0:451:e1aa:e66e with SMTP id z1-20020a05640235c100b00451e1aae66emr26830062edc.275.1664287016443; Tue, 27 Sep 2022 06:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664287016; cv=none; d=google.com; s=arc-20160816; b=vwu2aeeYcSR7UZADFrkroAIHqtQZNECdpUcbn9aMMr5ssMAYleU4md107/TJfnf1jh gKljqM0MRcgNv23llM9yiENSSGC+9pmJmhJhCc+LbUwHFmutCfjHohMOMKSXtWDNo6Im SUyCRJQAZlxxJsVGevKGi4cRYGaV1ldYVXA5+L2QDiX2pYnl0JS0t9yETCmzMkYyEMTy e9n0KTzoGV9mkfxGc4sAL/wZ7X1FOgml40lJmqlMX09WrSOZ/VFa610SFbJJzzL8G3a9 d7gcV0QpbQ5RY0V3zQjpYh6Wm7qtl1S7wt/JMrrnWPceGdYUI25iLrXsegFKsscGOWlI mL8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=M1YzzLucr0U6J7Z0sCVj20jDaMRU9Pvcyx2fRoLyXWA=; b=YyY9YyKBTx/l3jrpvxXktparnTCDoWGd6EsVZkMvace6WHaVn0UiT+WsE3nWYMIGFa IG2+mbBc8ZxmKZGJuJFVAvfR9QwuF5PYxIGBHRMpKIEBKcOA3PtXwnG/XZGdl1Oi8g81 2XY2vlcWi/nLasR42TU1Oz2Nxu4GSzl9cxwjnPhWfiETSWQAuoBAfKhS5YKy5YY8N5l2 uZDVnWcykh50+Rk7pwWWKmd0nJ3VnAvm68E1lKcbfmVqzSFxxjbNmy6mziTwHWbBlBVS xD+JEzSkVtFmxBVfQgnvteJ8cESogPvhOtoCI5JhOBZv+y/mecLgU8INJEwvAUKk2oXw et4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs7-20020a0564020c4700b0044ef7afb9c4si1668303edb.543.2022.09.27.06.56.20; Tue, 27 Sep 2022 06:56:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S232329AbiI0Nmj (ORCPT + 99 others); Tue, 27 Sep 2022 09:42:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbiI0Nmf (ORCPT ); Tue, 27 Sep 2022 09:42:35 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73782E3EC1 for ; Tue, 27 Sep 2022 06:42:34 -0700 (PDT) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4McLMY4JR6zpSvx; Tue, 27 Sep 2022 21:39:37 +0800 (CST) Received: from huawei.com (10.175.112.208) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 27 Sep 2022 21:42:32 +0800 From: Yuan Can To: , , , , CC: Subject: [PATCH] crypto: ccp - Remove unused struct ccp_crypto_cpu Date: Tue, 27 Sep 2022 13:39:55 +0000 Message-ID: <20220927133955.104353-1-yuancan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.112.208] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500024.china.huawei.com (7.185.36.10) 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: X-Mailing-List: linux-crypto@vger.kernel.org After commit bc3854476f36("crypto: ccp - Use a single queue for proper ordering of tfm requests"), no one use struct ccp_crypto_cpu, so remove it. Signed-off-by: Yuan Can --- drivers/crypto/ccp/ccp-crypto-main.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/crypto/ccp/ccp-crypto-main.c b/drivers/crypto/ccp/ccp-crypto-main.c index 5976530c00a8..c8f3345c66e2 100644 --- a/drivers/crypto/ccp/ccp-crypto-main.c +++ b/drivers/crypto/ccp/ccp-crypto-main.c @@ -78,13 +78,6 @@ struct ccp_crypto_cmd { int ret; }; -struct ccp_crypto_cpu { - struct work_struct work; - struct completion completion; - struct ccp_crypto_cmd *crypto_cmd; - int err; -}; - static inline bool ccp_crypto_success(int err) { if (err && (err != -EINPROGRESS) && (err != -EBUSY)) -- 2.17.1