btrfs: remove done label in writepage_delalloc
[sfrench/cifs-2.6.git] / fs / btrfs / extent_io.c
index e37950a576fc3b0bcd934072b34ac4665de5f555..73c9c59cd53580e39f06599b939567f2a45c9343 100644 (file)
@@ -3446,8 +3446,7 @@ static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode,
                         * started, so we don't want to return > 0 unless
                         * things are going well.
                         */
-                       ret = ret < 0 ? ret : -EIO;
-                       goto done;
+                       return ret < 0 ? ret : -EIO;
                }
                /*
                 * delalloc_end is already one less than the total length, so
@@ -3479,10 +3478,7 @@ static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode,
                return 1;
        }
 
-       ret = 0;
-
-done:
-       return ret;
+       return 0;
 }
 
 /*