git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d15ae1c
)
net/enic: remove ancillary assignment
author
Aaron Conole
<aconole@redhat.com>
Tue, 26 Sep 2017 18:53:29 +0000
(14:53 -0400)
committer
Ferruh 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
patch
|
blob
|
history
diff --git
a/drivers/net/enic/base/vnic_dev.c
b/drivers/net/enic/base/vnic_dev.c
index
8064679
..
9b25d21
100644
(file)
--- 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);