All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 06/11] enic: replace open-coded ARRAY_SIZE with macro
@ 2012-04-11  0:56 Jim Cromie
  2012-04-13 17:15 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Cromie @ 2012-04-11  0:56 UTC (permalink / raw)
  To: netdev; +Cc: trivial, Jim Cromie


Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
 drivers/net/ethernet/cisco/enic/enic_pp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ethernet/cisco/enic/enic_pp.c b/drivers/net/ethernet/cisco/enic/enic_pp.c
index dafea1e..43464f0 100644
--- a/drivers/net/ethernet/cisco/enic/enic_pp.c
+++ b/drivers/net/ethernet/cisco/enic/enic_pp.c
@@ -184,7 +184,7 @@ static int (*enic_pp_handlers[])(struct enic *enic, int vf,
 };
 
 static const int enic_pp_handlers_count =
-			sizeof(enic_pp_handlers)/sizeof(*enic_pp_handlers);
+			ARRAY_SIZE(enic_pp_handlers);
 
 static int enic_pp_preassociate(struct enic *enic, int vf,
 	struct enic_port_profile *prev_pp, int *restore_pp)
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 06/11] enic: replace open-coded ARRAY_SIZE with macro
  2012-04-11  0:56 [PATCH 06/11] enic: replace open-coded ARRAY_SIZE with macro Jim Cromie
@ 2012-04-13 17:15 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-04-13 17:15 UTC (permalink / raw)
  To: jim.cromie; +Cc: netdev, trivial

From: Jim Cromie <jim.cromie@gmail.com>
Date: Tue, 10 Apr 2012 18:56:09 -0600

> Signed-off-by: Jim Cromie <jim.cromie@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-13 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11  0:56 [PATCH 06/11] enic: replace open-coded ARRAY_SIZE with macro Jim Cromie
2012-04-13 17:15 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.