[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cdi-devel] [PATCH] Fix a signed/unsigned comparison warning in e1000



Hi,

This patch merely fixes a signed/unsigned comparison warning in the e1000 driver that was missed in the previous warning fix commit.

Cheers,
Matt

Signed-off-by: Matthew Iselin <matthew@xxxxxxxxxxxxxx>
---
 e1000/device.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/e1000/device.h b/e1000/device.h
index 899a06d..34f9dc1 100644
--- a/e1000/device.h
+++ b/e1000/device.h
@@ -149,7 +149,7 @@ struct e1000_device {
 
     struct e1000_tx_descriptor  tx_desc[TX_BUFFER_NUM];
     uint8_t                     tx_buffer[TX_BUFFER_NUM * TX_BUFFER_SIZE];
-    int                         tx_cur_buffer;
+    uint32_t                    tx_cur_buffer;
 
     struct e1000_rx_descriptor  rx_desc[RX_BUFFER_NUM];
     uint8_t                     rx_buffer[RX_BUFFER_NUM * RX_BUFFER_SIZE];
-- 
1.6.4.msysgit.0