You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] drivers/block: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a duplicate of ARRAY_SIZE. Some trailing whitespaces are also removed. drivers/block/acsi* has been left out as it's marked BROKEN. Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Cc: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
ef9ceab282
commit
945f390f02
@@ -181,7 +181,7 @@ static struct {
|
||||
{ 6, TYPE_HD }, /* 31: H1640 <- was H1600 == h1600 for PC */
|
||||
};
|
||||
|
||||
#define NUM_DISK_MINORS (sizeof(minor2disktype)/sizeof(*minor2disktype))
|
||||
#define NUM_DISK_MINORS ARRAY_SIZE(minor2disktype)
|
||||
|
||||
/*
|
||||
* Maximum disk size (in kilobytes). This default is used whenever the
|
||||
|
||||
Reference in New Issue
Block a user