From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Conole Subject: [RFC 4/4] enic: remove anscillary assignment Date: Tue, 26 Sep 2017 14:53:29 -0400 Message-ID: <20170926185329.2776-5-aconole@redhat.com> References: <20170926185329.2776-1-aconole@redhat.com> To: dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 629451B1BD for ; Tue, 26 Sep 2017 20:53:51 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B442E81E00 for ; Tue, 26 Sep 2017 18:53:50 +0000 (UTC) Received: from dhcp-25-97.bos.redhat.com (ovpn-122-85.rdu2.redhat.com [10.10.122.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id E7C9E69705 for ; Tue, 26 Sep 2017 18:53:48 +0000 (UTC) In-Reply-To: <20170926185329.2776-1-aconole@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The assignment at initialization is overwritten immediately. Drop the assignment. Signed-off-by: Aaron Conole --- drivers/net/enic/base/vnic_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/base/vnic_dev.c b/drivers/net/enic/base/vnic_dev.c index a4b7f4b..932667f 100644 --- a/drivers/net/enic/base/vnic_dev.c +++ b/drivers/net/enic/base/vnic_dev.c @@ -272,7 +272,7 @@ int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, __attribute__((unused)) unsigned int socket_id, char *z_name) { - void *alloc_addr = NULL; + void *alloc_addr; dma_addr_t alloc_pa = 0; vnic_dev_desc_ring_size(ring, desc_count, desc_size); -- 2.9.5