drivers/isdn/hardware/eicon/message.c:
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.
Signed-off-by Andi Drebes <[email protected]>
---
drivers/isdn/hardware/eicon/message.c +1 -1
@@ -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