VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Tobias Klauser <tklauser@nuerscht.ch> 2006-03-24 03:15:34 -0800 committer: Linus Torvalds <torvalds@g5.osdl.org> 2006-03-24 07:33:19 -0800 commit: e8c96f8c29d89af0c13dc2819a9a00575846ca18 parent: b5029622ac86bb441dc5e641226fb1152fca02d7
Commit Summary:
[PATCH] fs: Use ARRAY_SIZE macro
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/fs/sysv/super.c b/fs/sysv/super.c
index 59e76b51142b..e92b991e6dda 100644
--- a/fs/sysv/super.c
+++ b/fs/sysv/super.c
@@ -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)