Use ARRAY_SIZE where Coccinelle wasn't able to do it

This commit is contained in:
Felipe Oliveira Carvalho
2014-12-13 11:11:49 -03:00
parent 3c857900fe
commit 8aeb2e37ee
6 changed files with 16 additions and 18 deletions

View File

@@ -318,7 +318,7 @@ static const struct nv_cmd {
};
/* Number of commands in nv_cmds[]. */
#define NV_CMDS_SIZE (sizeof(nv_cmds) / sizeof(struct nv_cmd))
#define NV_CMDS_SIZE ARRAY_SIZE(nv_cmds)
/* Sorted index of commands in nv_cmds[]. */
static short nv_cmd_idx[NV_CMDS_SIZE];