isofs: fix some coding style problems in iso9660.c
authorLiu Aleaxander <Aleaxander@gmail.com>
Mon, 14 Dec 2009 14:48:01 +0000 (22:48 +0800)
committerLiu Aleaxander <Aleaxander@gmail.com>
Mon, 14 Dec 2009 14:48:01 +0000 (22:48 +0800)
Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
core/fs/iso9660/iso9660.c

index 001d33f..19bd314 100644 (file)
@@ -8,22 +8,22 @@
 
 static struct inode *new_iso_inode(void)
 {
-       struct inode *inode = malloc(sizeof(*inode));
-       
-       if (!inode) {
-               malloc_error("inode structure in new_iso_inode");
-               return NULL;
-       }
-       memset(inode, 0, sizeof(*inode));
-
-       inode->data = malloc(sizeof(uint32_t));
-       if (!inode) {
-               malloc_error("inode->data in new_iso_inode");
-               free(inode);
-               return NULL;
-       }
-       
-       return inode;
+    struct inode *inode = malloc(sizeof(*inode));
+    
+    if (!inode) {
+       malloc_error("inode structure in new_iso_inode");
+       return NULL;
+    }
+    memset(inode, 0, sizeof(*inode));
+    
+    inode->data = malloc(sizeof(uint32_t));
+    if (!inode) {
+       malloc_error("inode->data in new_iso_inode");
+       free(inode);
+       return NULL;
+    }
+    
+    return inode;
 }
 
 
@@ -37,7 +37,7 @@ static void iso_close_file(struct file *file)
 
 static inline struct iso_sb_info * ISO_SB(struct fs_info *fs)
 {
-       return fs->fs_info;
+    return fs->fs_info;
 }
 
 /*