Patchwork [net-next] e1000: Removing the unused macro PAGE_USE_COUNT()

login
register
mail settings
Submitter Breno Leitao
Date Feb. 17, 2009, 2:59 p.m.
Message ID <499AD0D4.2000504@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/23260/
State Accepted
Delegated to: David Miller
Headers show

Comments

Breno Leitao - Feb. 17, 2009, 2:59 p.m.
Removing the unused macro PAGE_USE_COUNT(), since there is no more reference
to it. The last reference was removed by Jesse's commit number 
630b25cdf4e3f8c0a11eb04fc8436cc36653cd58.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
---
 drivers/net/e1000/e1000_main.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
Jeff Kirsher - Feb. 17, 2009, 11:27 p.m.
On Tue, Feb 17, 2009 at 6:59 AM, Breno Leitao <leitao@linux.vnet.ibm.com> wrote:
> Removing the unused macro PAGE_USE_COUNT(), since there is no more reference
> to it. The last reference was removed by Jesse's commit number
> 630b25cdf4e3f8c0a11eb04fc8436cc36653cd58.
>
> Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
> ---
>  drivers/net/e1000/e1000_main.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
>

Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
David Miller - Feb. 19, 2009, 10:39 p.m.
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue, 17 Feb 2009 15:27:01 -0800

> On Tue, Feb 17, 2009 at 6:59 AM, Breno Leitao <leitao@linux.vnet.ibm.com> wrote:
> > Removing the unused macro PAGE_USE_COUNT(), since there is no more reference
> > to it. The last reference was removed by Jesse's commit number
> > 630b25cdf4e3f8c0a11eb04fc8436cc36653cd58.
> >
> > Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
> > ---
> >  drivers/net/e1000/e1000_main.c |    2 --
> >  1 files changed, 0 insertions(+), 2 deletions(-)
> >
> 
> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

Applied, thanks everyone.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index ca7cd7e..61b56ca 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -1877,8 +1877,6 @@  int e1000_setup_all_rx_resources(struct e1000_adapter *adapter)
  * e1000_setup_rctl - configure the receive control registers
  * @adapter: Board private structure
  **/
-#define PAGE_USE_COUNT(S) (((S) >> PAGE_SHIFT) + \
-			(((S) & (PAGE_SIZE - 1)) ? 1 : 0))
 static void e1000_setup_rctl(struct e1000_adapter *adapter)
 {
 	struct e1000_hw *hw = &adapter->hw;