From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 301C7A0540; Fri, 9 Sep 2022 17:04:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C89341155; Fri, 9 Sep 2022 17:04:40 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 42EE542802 for ; Fri, 9 Sep 2022 17:04:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662735878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fEXf3bBh3CtNt/fD8twPYwX9gvfY45lqoC6oaQSoy84=; b=ZvdT+UmHbPs13Og0qPnZhIXFZa8CzEC4k9SUaRNaj5dDVKH4DwCHWuILNhkJy0S7k1jn7L OgJtp01L4ZHE8/MwaVorZrIVdaOlEeOzw6DLTGFrI2MwyIjhzSgjHOkS/qjkoTu1Hlyyqd hNRenoAqOmLTqXFrc0iLmjr8L2bp7JY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-63-8g8khSJKPM2POmP9a4aQfA-1; Fri, 09 Sep 2022 11:04:34 -0400 X-MC-Unique: 8g8khSJKPM2POmP9a4aQfA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AC9DB85A58A; Fri, 9 Sep 2022 15:04:33 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C45FC15BBD; Fri, 9 Sep 2022 15:04:32 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: gakhil@marvell.com, chandu@amd.com, stable@dpdk.org, Amaranath Somalapuram Subject: [PATCH 2/4] crypto/ccp: remove some dead code for UIO Date: Fri, 9 Sep 2022 17:04:09 +0200 Message-Id: <20220909150411.3702860-3-david.marchand@redhat.com> In-Reply-To: <20220909150411.3702860-1-david.marchand@redhat.com> References: <20220909150411.3702860-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org uio_fd is unused. Fixes: 09a0fd736a08 ("crypto/ccp: enable IOMMU") Cc: stable@dpdk.org Signed-off-by: David Marchand --- drivers/crypto/ccp/ccp_dev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/crypto/ccp/ccp_dev.c b/drivers/crypto/ccp/ccp_dev.c index 9c9cb81236..410e62121e 100644 --- a/drivers/crypto/ccp/ccp_dev.c +++ b/drivers/crypto/ccp/ccp_dev.c @@ -653,7 +653,6 @@ static int ccp_probe_device(int ccp_type, struct rte_pci_device *pci_dev) { struct ccp_device *ccp_dev = NULL; - int uio_fd = -1; ccp_dev = rte_zmalloc("ccp_device", sizeof(*ccp_dev), RTE_CACHE_LINE_SIZE); @@ -671,8 +670,6 @@ ccp_probe_device(int ccp_type, struct rte_pci_device *pci_dev) return 0; fail: CCP_LOG_ERR("CCP Device probe failed"); - if (uio_fd >= 0) - close(uio_fd); rte_free(ccp_dev); return -1; } -- 2.37.2