Commit ed22a8ff authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

r8169: make NUM_RX_DESC a signed int

After recent changes there's no need any longer to define NUM_RX_DESC
as an unsigned value.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2f53e9d7
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
#define R8169_REGS_SIZE 256 #define R8169_REGS_SIZE 256
#define R8169_RX_BUF_SIZE (SZ_16K - 1) #define R8169_RX_BUF_SIZE (SZ_16K - 1)
#define NUM_TX_DESC 256 /* Number of Tx descriptor registers */ #define NUM_TX_DESC 256 /* Number of Tx descriptor registers */
#define NUM_RX_DESC 256U /* Number of Rx descriptor registers */ #define NUM_RX_DESC 256 /* Number of Rx descriptor registers */
#define R8169_TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc)) #define R8169_TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc))
#define R8169_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc)) #define R8169_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))
...@@ -3844,7 +3844,7 @@ static struct page *rtl8169_alloc_rx_data(struct rtl8169_private *tp, ...@@ -3844,7 +3844,7 @@ static struct page *rtl8169_alloc_rx_data(struct rtl8169_private *tp,
static void rtl8169_rx_clear(struct rtl8169_private *tp) static void rtl8169_rx_clear(struct rtl8169_private *tp)
{ {
unsigned int i; int i;
for (i = 0; i < NUM_RX_DESC && tp->Rx_databuff[i]; i++) { for (i = 0; i < NUM_RX_DESC && tp->Rx_databuff[i]; i++) {
dma_unmap_page(tp_to_dev(tp), dma_unmap_page(tp_to_dev(tp),
...@@ -3859,7 +3859,7 @@ static void rtl8169_rx_clear(struct rtl8169_private *tp) ...@@ -3859,7 +3859,7 @@ static void rtl8169_rx_clear(struct rtl8169_private *tp)
static int rtl8169_rx_fill(struct rtl8169_private *tp) static int rtl8169_rx_fill(struct rtl8169_private *tp)
{ {
unsigned int i; int i;
for (i = 0; i < NUM_RX_DESC; i++) { for (i = 0; i < NUM_RX_DESC; i++) {
struct page *data; struct page *data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment