[Yaffs] [PATCH] fix extra tokens at end of #endif directive
Luc Van Oostenryck
lkml at looxix.net
Tue Jul 19 01:45:32 BST 2005
Fix extra tokens breakage at end of #endif directive:
the break of the switch statement were on the same line as an #endif.
-------------- next part --------------
diff --git a/fs/yaffs2/yaffs_fs.c b/fs/yaffs2/yaffs_fs.c
--- a/fs/yaffs2/yaffs_fs.c
+++ b/fs/yaffs2/yaffs_fs.c
@@ -647,7 +647,8 @@ static void yaffs_FillInodeFromObject(st
init_special_inode(inode, obj->yst_mode,old_decode_dev(obj->yst_rdev));
#else
init_special_inode(inode, obj->yst_mode,(dev_t)(obj->yst_rdev));
-#endif break;
+#endif
+ break;
case S_IFREG: // file
inode->i_op = &yaffs_file_inode_operations;
inode->i_fop = &yaffs_file_operations;
@@ -933,7 +934,8 @@ static int yaffs_mknod(struct inode *dir
obj = yaffs_MknodSpecial(parent,dentry->d_name.name,mode,current->uid, current->gid,old_encode_dev(rdev));
#else
obj = yaffs_MknodSpecial(parent,dentry->d_name.name,mode,current->uid, current->gid,rdev);
-#endif break;
+#endif
+ break;
case S_IFREG: // file
T(YAFFS_TRACE_OS,(KERN_DEBUG"yaffs_mknod: making file\n"));
obj = yaffs_MknodFile(parent,dentry->d_name.name,mode,current->uid, current->gid);
More information about the yaffs
mailing list