From: Markus Elfring <[email protected]>
Date: Tue, 27 Sep 2016 16:06:35 +0200

Adjust jump labels according to the current Linux coding style convention.

Signed-off-by: Markus Elfring <[email protected]>
---
 drivers/md/bitmap.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index 5125186..1f7f1e1 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -1818,22 +1818,22 @@ struct bitmap *bitmap_create(struct mddev *mddev, int 
slot)
                        err = -EINVAL;
        }
        if (err)
-               goto error;
+               goto free_bitmap;
 
        bitmap->daemon_lastrun = jiffies;
        err = bitmap_resize(bitmap, blocks, mddev->bitmap_info.chunksize, 1);
        if (err)
-               goto error;
+               goto free_bitmap;
 
        printk(KERN_INFO "created bitmap (%lu pages) for device %s\n",
               bitmap->counts.pages, bmname(bitmap));
 
        err = test_bit(BITMAP_WRITE_ERROR, &bitmap->flags) ? -EIO : 0;
        if (err)
-               goto error;
+               goto free_bitmap;
 
        return bitmap;
- error:
+free_bitmap:
        bitmap_free(bitmap);
        return ERR_PTR(err);
 }
-- 
2.10.0

Reply via email to