On Mon, 2007-06-11 19:47:06 +0200, Karsten Keil <[email protected]> wrote: > diff --git a/drivers/isdn/hisax/callc.c b/drivers/isdn/hisax/callc.c > index 7c56c44..0b9ed8e 100644 > --- a/drivers/isdn/hisax/callc.c > +++ b/drivers/isdn/hisax/callc.c > @@ -834,8 +834,6 @@ static struct FsmNode fnlist[] __initdata = > }; > /* *INDENT-ON* */ > > -#define FNCOUNT (sizeof(fnlist)/sizeof(struct FsmNode)) > - > int __init > CallcNew(void) > { > @@ -843,7 +841,7 @@ CallcNew(void) > callcfsm.event_count = EVENT_COUNT; > callcfsm.strEvent = strEvent; > callcfsm.strState = strState; > - return FsmNew(&callcfsm, fnlist, FNCOUNT); > + return FsmNew(&callcfsm, fnlist, ARRAY_SIZE(fnlist)); > } > > void I think that's really a nice improvement :) Thanks for the work, MfG, JBG -- Jan-Benedict Glaw [email protected] +49-172-7608481 Signature of: Ich hatte in letzter Zeit ein bißchen viel Realitycheck. the second : Langsam möchte ich mal wieder weiterträumen können. -- Maximilian Wilhelm (18. Mai 2006, #lug-owl.de)
Attachment:
signature.asc
Description: Digital signature
- References:
- [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- From: Andi Drebes <[email protected]>
- Re: [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- From: Karsten Keil <[email protected]>
- Re: [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- From: Jan-Benedict Glaw <[email protected]>
- Re: [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- From: Andi Drebes <[email protected]>
- Re: [KJ] Re: [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- From: "Darren Jenkins" <[email protected]>
- Re: [KJ] Re: [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- From: Karsten Keil <[email protected]>
- [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- Prev by Date: Re: [RFC][PATCH 1/6] Introduce struct sched_entity and struct lrq
- Next by Date: [PATCH] scsi disk help file is not complete
- Previous by thread: Re: [KJ] Re: [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- Next by thread: Re: [KJ] Re: [PATCH] drivers/isdn/hisax: ARRAY_SIZE instead of sizeof
- Index(es):