Skip to content

Commit

Permalink
ARRAY_SIZE changes
Browse files Browse the repository at this point in the history
These changes were a direct result of using a semantic patch
More information can be found at http://www.emn.fr/x-info/coccinelle/

Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
Stoyan Gaydarov authored and Jesper Nilsson committed Sep 1, 2009
1 parent 0395ac6 commit 62f589c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/cris/arch-v32/mach-a3/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct crisv32_ioport crisv32_ioports[] = {
},
};

#define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport)
#define NBR_OF_PORTS ARRAY_SIZE(crisv32_ioports)

struct crisv32_iopin crisv32_led_net0_green;
struct crisv32_iopin crisv32_led_net0_red;
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/arch-v32/mach-fs/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct crisv32_ioport crisv32_ioports[] = {
}
};

#define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport)
#define NBR_OF_PORTS ARRAY_SIZE(crisv32_ioports)

struct crisv32_iopin crisv32_led_net0_green;
struct crisv32_iopin crisv32_led_net0_red;
Expand Down

0 comments on commit 62f589c

Please sign in to comment.