summaryrefslogtreecommitdiff
path: root/lib/igb/igb.c
diff options
context:
space:
mode:
authorandrew-elder <aelder@audioscience.com>2017-10-07 16:33:38 -0400
committerGitHub <noreply@github.com>2017-10-07 16:33:38 -0400
commit21422721301a409209f9dbb04d0c102a2e072b7a (patch)
treea17c45107028ff33055aefa25e14e5bc195e5ff1 /lib/igb/igb.c
parentbffc91619ffff1990d81e7326d7d5879a705f523 (diff)
parent67cee412de055c7a49a8e37f1ee870269d3f5abb (diff)
downloadOpen-AVB-21422721301a409209f9dbb04d0c102a2e072b7a.tar.gz
Merge pull request #701 from andrew-elder/feature/appveyorfeature-appveyor
appveyor - working
Diffstat (limited to 'lib/igb/igb.c')
-rw-r--r--lib/igb/igb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/igb/igb.c b/lib/igb/igb.c
index 497b0c8a..d59a0fcb 100644
--- a/lib/igb/igb.c
+++ b/lib/igb/igb.c
@@ -131,7 +131,7 @@ int igb_probe(device_t *dev)
int igb_attach(char *dev_path, device_t *pdev)
{
struct adapter *adapter;
- struct igb_bind_cmd bind;
+ struct igb_bind_cmd bind = {0};
int error = 0;
bool locked = false;
@@ -666,7 +666,7 @@ int igb_dma_malloc_page(device_t *dev, struct igb_dma_alloc *dma)
{
struct adapter *adapter;
int error = 0;
- struct igb_buf_cmd ubuf;
+ struct igb_buf_cmd ubuf = {0};
if (dev == NULL)
return -EINVAL;
@@ -749,7 +749,7 @@ err:
**********************************************************************/
static int igb_allocate_queues(struct adapter *adapter)
{
- struct igb_buf_cmd ubuf;
+ struct igb_buf_cmd ubuf = {0};
int dev = adapter->ldev;
int i, error = 0;
@@ -901,7 +901,7 @@ static void igb_initialize_transmit_units(struct adapter *adapter)
static void igb_free_transmit_structures(struct adapter *adapter)
{
int i;
- struct igb_buf_cmd ubuf;
+ struct igb_buf_cmd ubuf = {0};
for (i = 0; i < adapter->num_queues; i++) {
if (adapter->tx_rings[i].tx_base)
@@ -2017,7 +2017,7 @@ int igb_set_class_bandwidth(device_t *dev, u_int32_t class_a, u_int32_t class_b,
u_int32_t linkrate;
struct adapter *adapter;
struct e1000_hw *hw;
- struct igb_link_cmd link;
+ struct igb_link_cmd link = {0};
int err;
float class_a_percent, class_b_percent;
int error = 0;
@@ -2170,7 +2170,7 @@ int igb_set_class_bandwidth2(device_t *dev, u_int32_t class_a_bytes_per_second,
int temp;
struct adapter *adapter;
struct e1000_hw *hw;
- struct igb_link_cmd link;
+ struct igb_link_cmd link = {0};
int err;
float class_a_percent, class_b_percent;
int error = 0;