diff options
Diffstat (limited to 'drivers/staging/epl/proc_fs.c')
-rw-r--r-- | drivers/staging/epl/proc_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/epl/proc_fs.c b/drivers/staging/epl/proc_fs.c index 9ccf079e67e..e48949d9ddf 100644 --- a/drivers/staging/epl/proc_fs.c +++ b/drivers/staging/epl/proc_fs.c @@ -196,7 +196,7 @@ void TgtDbgSignalTracePoint(u8 bTracePointNumber_p) { if (bTracePointNumber_p >= - (sizeof(aatmDbgTracePoint_l) / sizeof(aatmDbgTracePoint_l[0]))) { + ARRAY_SIZE(aatmDbgTracePoint_l)) { goto Exit; } @@ -330,7 +330,7 @@ static int EplLinProcRead(char *pcBuffer_p, nSize += snprintf(pcBuffer_p + nSize, nBufferSize_p - nSize, "DbgTracePoints:\n"); for (nNum = 0; - nNum < (sizeof(aatmDbgTracePoint_l) / sizeof(atomic_t)); + nNum < ARRAY_SIZE(aatmDbgTracePoint_l); nNum++) { nSize += snprintf(pcBuffer_p + nSize, nBufferSize_p - nSize, |