mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] fs: 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 deleted. Signed-off-by: Tobias Klauser <[email protected]> Cc: David Howells <[email protected]> Cc: Dave Kleikamp <[email protected]> Acked-by: Trond Myklebust <[email protected]> Cc: Neil Brown <[email protected]> Cc: Chris Mason <[email protected]> Cc: Jeff Mahoney <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Nathan Scott <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b5029622ac
commit
e8c96f8c29
23 changed files with 40 additions and 51 deletions
|
|
@ -377,10 +377,10 @@ static int sysv_fill_super(struct super_block *sb, void *data, int silent)
|
|||
sbi->s_sb = sb;
|
||||
sbi->s_block_base = 0;
|
||||
sb->s_fs_info = sbi;
|
||||
|
||||
|
||||
sb_set_blocksize(sb, BLOCK_SIZE);
|
||||
|
||||
for (i = 0; i < sizeof(flavours)/sizeof(flavours[0]) && !size; i++) {
|
||||
for (i = 0; i < ARRAY_SIZE(flavours) && !size; i++) {
|
||||
brelse(bh);
|
||||
bh = sb_bread(sb, flavours[i].block);
|
||||
if (!bh)
|
||||
|
|
|
|||
Loading…
Reference in a new issue