yaffs direct: Clean up braces
authorCharles Manning <cdhmanning@gmail.com>
Fri, 7 Jan 2011 01:21:00 +0000 (14:21 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Fri, 7 Jan 2011 01:21:00 +0000 (14:21 +1300)
Change bracing style.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/yaffsfs.c

index e3bc19d..e4f6df0 100644 (file)
@@ -650,13 +650,11 @@ static struct yaffs_obj *yaffsfs_DoFindDirectory(struct yaffs_obj *startDir,
                        /* got to the end of the string */
                        return dir;
                else{
-                       if(strcmp(str,_Y(".")) == 0)
-                       {
+                       if(strcmp(str,_Y(".")) == 0){
                                /* Do nothing */
-                       }
-                       else if(strcmp(str,_Y("..")) == 0)
+                       } else if(strcmp(str,_Y("..")) == 0) {
                                dir = dir->parent;
-                       else{
+                       else{
                                dir = yaffs_find_by_name(dir,str);
 
                                dir = yaffsfs_FollowLink(dir,symDepth,loop);