Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78917
b: refs/heads/master
c: ef878b8
h: refs/heads/master
i:
  78915: eef7581
v: v3
  • Loading branch information
Alejandro Martinez Ruiz authored and David S. Miller committed Jan 28, 2008
1 parent 70f482b commit bdb5321
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c00acf46deb18926931ba264510353cf22b98a79
refs/heads/master: ef878b889907f29af1b5f34734f14eca1aa43cf6
2 changes: 1 addition & 1 deletion trunk/drivers/net/sk98lin/skgemib.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ PNMI_STATIC int DiagActions(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,


/* defines *******************************************************************/
#define ID_TABLE_SIZE (sizeof(IdTable)/sizeof(IdTable[0]))
#define ID_TABLE_SIZE ARRAY_SIZE(IdTable)


/* global variables **********************************************************/
Expand Down
12 changes: 0 additions & 12 deletions trunk/drivers/net/sk98lin/skgepnmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,18 +388,6 @@ int Level) /* Initialization level */
SK_PNMI_CNT_NO, SK_PNMI_MAX_IDX));
}

if (SK_PNMI_MAX_IDX !=
(sizeof(StatAddr) / (sizeof(SK_PNMI_STATADDR) * SK_PNMI_MAC_TYPES))) {

SK_ERR_LOG(pAC, SK_ERRCL_SW, SK_PNMI_ERR050, SK_PNMI_ERR050MSG);

SK_DBG_MSG(pAC, SK_DBGMOD_PNMI, SK_DBGCAT_INIT | SK_DBGCAT_FATAL,
("StatAddr table size (%d) differs from "
"SK_PNMI_MAX_IDX (%d)\n",
(sizeof(StatAddr) /
(sizeof(SK_PNMI_STATADDR) * SK_PNMI_MAC_TYPES)),
SK_PNMI_MAX_IDX));
}
#endif /* SK_PNMI_CHECK */
break;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/sk98lin/skgesirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ int Port) /* Which port should be checked */
*/
RxCts = 0;

for (i = 0; i < sizeof(SkGeRxRegs)/sizeof(SkGeRxRegs[0]); i++) {
for (i = 0; i < ARRAY_SIZE(SkGeRxRegs); i++) {

(void)SkXmMacStatistic(pAC, IoC, Port, SkGeRxRegs[i], &RxTmp);

Expand Down

0 comments on commit bdb5321

Please sign in to comment.