[Yaffs] [PATCH] fix extra tokens at end of #endif directive

Top Page
Attachments:
Message as email
+ (text/plain)
+ 12-fix-extra-tokens-at-end-of-#endif.diff (text/plain)
Delete this message
Reply to this message
Author: Luc Van Oostenryck
Date:  
To: yaffs
Subject: [Yaffs] [PATCH] fix extra tokens at end of #endif directive
Fix extra tokens breakage at end of #endif directive:
the break of the switch statement were on the same line as an #endif.
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);