lkml.org 
[lkml]   [2016]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 22/54] md/raid1: Delete three unwanted spaces before increment operators
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Tue, 4 Oct 2016 21:10:37 +0200

    The script "checkpatch.pl" pointed information out like the following.

    ERROR: space prohibited before that '++' (ctx:WxO)

    Thus fix the affected source code places.

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

    diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
    index fc9d600..95f6098 100644
    --- a/drivers/md/raid1.c
    +++ b/drivers/md/raid1.c
    @@ -220,7 +220,7 @@ static void reschedule_retry(struct r1bio *r1_bio)

    spin_lock_irqsave(&conf->device_lock, flags);
    list_add(&r1_bio->retry_list, &conf->retry_list);
    - conf->nr_queued ++;
    + conf->nr_queued++;
    spin_unlock_irqrestore(&conf->device_lock, flags);

    wake_up(&conf->wait_barrier);
    @@ -1878,7 +1878,7 @@ static int fix_sync_read_error(struct r1bio *r1_bio)
    }
    sectors -= s;
    sect += s;
    - idx ++;
    + idx++;
    }
    set_bit(R1BIO_Uptodate, &r1_bio->state);
    bio->bi_error = 0;
    @@ -2570,7 +2570,7 @@ static sector_t raid1_sync_request(struct mddev *mddev, sector_t sector_nr,
    } else if (!test_bit(In_sync, &rdev->flags)) {
    bio_set_op_attrs(bio, REQ_OP_WRITE, 0);
    bio->bi_end_io = end_sync_write;
    - write_targets ++;
    + write_targets++;
    } else {
    /* may need to read from here */
    sector_t first_bad = MaxSector;
    --
    2.10.1
    \
     
     \ /
      Last update: 2016-10-06 11:21    [W:4.222 / U:0.736 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site