diff options
author | Jérémy Lefaure <[email protected]> | 2017-10-01 15:30:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-10-03 18:34:56 +0200 |
commit | 2595587d7e227a9181750110f50e02a2511821dd (patch) | |
tree | de11fa0d4540b41b08e47d4c81beb36a9aa9606f /drivers/iio/trigger/stm32-timer-trigger.c | |
parent | 8dabf52ffb6445fa5bcc8b6d2ecb615f60d0dd12 (diff) |
staging: rtlwifi: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also,
it is useless to use a variable to store this constant calculated at
compile time.
Found with Coccinelle with the following semantic patch:
@r depends on (org || report)@
type T;
T[] E;
position p;
@@
(
(sizeof(E)@p /sizeof(*E))
|
(sizeof(E)@p /sizeof(E[...]))
|
(sizeof(E)@p /sizeof(T))
)
Signed-off-by: Jérémy Lefaure <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions