net/enic: remove ancillary assignment
authorAaron Conole <aconole@redhat.com>
Tue, 26 Sep 2017 18:53:29 +0000 (14:53 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:52:49 +0000 (01:52 +0100)
The assignment at initialization is overwritten immediately.  Drop the
assignment.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/base/vnic_dev.c

index 8064679..9b25d21 100644 (file)
@@ -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);