projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] drivers/mtd: Use ARRAY_SIZE macro
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
maps
/
nettel.c
diff --git
a/drivers/mtd/maps/nettel.c
b/drivers/mtd/maps/nettel.c
index 632eb2aa968f476b9686bd46cea03157ed5cb376..54a3102ab19a8868cbd18c2d1ce5cf9c92111ea6 100644
(file)
--- a/
drivers/mtd/maps/nettel.c
+++ b/
drivers/mtd/maps/nettel.c
@@
-128,8
+128,7
@@
static struct mtd_partition nettel_amd_partitions[] = {
}
};
-#define NUM_AMD_PARTITIONS \
- (sizeof(nettel_amd_partitions)/sizeof(nettel_amd_partitions[0]))
+#define NUM_AMD_PARTITIONS ARRAY_SIZE(nettel_amd_partitions)
/****************************************************************************/