Skip to contentSkip to conversation

drivers/isdn/hardware/eicon/message.c:

PATCH New Andi Drebes 1 participant 1 message Jun 8, 2007 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/isdn/hardware/eicon/message.c:

This patch replaces an array size calculation in drivers/isdn/hardware/eicon/message.c that was done using sizeof with the ARRAY_SIZE macro.

Tested by compilation on an i386 box using "allyesconfig". Diffed against Linus' git-tree.

---

drivers/isdn/hardware/eicon/message.c +1 -1
index ccd35d0..582af66 100644
@@ -552,7 +552,7 @@ word api_put(APPL   * appl, CAPI_MSG   * msg)
 
   for(j=0;j<MAX_MSG_PARMS+1;j++) msg_parms[j].length = 0;
   for(i=0, ret = _BAD_MSG;
-      i<(sizeof(ftable)/sizeof(struct _ftable));
+      i<ARRAY_SIZE(ftable);
       i++) {
 
     if(ftable[i].command=msg->header.command) {

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors