lkml.org 
[lkml]   [2016]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 15/15] md-cluster: Delete unnecessary braces in unlock_all_bitmaps()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sat, 1 Oct 2016 16:15:55 +0200

    Do not use curly brackets at one source code place
    where a single statement should be sufficient.

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/md/md-cluster.c | 7 +++----
    1 file changed, 3 insertions(+), 4 deletions(-)

    diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c
    index 0cade1a..a9bf13d 100644
    --- a/drivers/md/md-cluster.c
    +++ b/drivers/md/md-cluster.c
    @@ -1223,11 +1223,10 @@ static void unlock_all_bitmaps(struct mddev *mddev)

    /* release other node's bitmap lock if they are existed */
    if (cinfo->other_bitmap_lockres) {
    - for (i = 0; i < mddev->bitmap_info.nodes - 1; i++) {
    - if (cinfo->other_bitmap_lockres[i]) {
    + for (i = 0; i < mddev->bitmap_info.nodes - 1; i++)
    + if (cinfo->other_bitmap_lockres[i])
    lockres_free(cinfo->other_bitmap_lockres[i]);
    - }
    - }
    +
    kfree(cinfo->other_bitmap_lockres);
    }
    }
    --
    2.10.0
    \
     
     \ /
      Last update: 2016-10-01 17:01    [W:4.020 / U:0.920 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site