multipath-tools: fix spacing around operators
authorXose Vazquez Perez <xose.vazquez@gmail.com>
Wed, 3 Aug 2016 18:13:57 +0000 (20:13 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 9 Aug 2016 14:55:16 +0000 (16:55 +0200)
Found by checkpatch - ERROR: need consistent spacing around "x"

Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: device-mapper development <dm-devel@redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
kpartx/ps3.c
libmpathpersist/mpath_persist.c
libmultipath/blacklist.c
libmultipath/checkers/tur.c
mpathpersist/main.c

index 2fe868d..8455097 100644 (file)
@@ -28,7 +28,7 @@ struct disklabel {
        u_int64_t d_res2;
        u_int64_t d_res3;
        struct d_partition d_partitions[MAX_PARTITIONS];
-       u_int8_t d_pad[0x600 - MAX_PARTITIONS * sizeof(struct d_partition)- 0x30];
+       u_int8_t d_pad[0x600 - MAX_PARTITIONS * sizeof(struct d_partition) - 0x30];
 };
 
 static int
index 252d6fc..c5be6cd 100644 (file)
@@ -514,7 +514,7 @@ int mpath_prout_reg(struct multipath *mpp,int rq_servact, int rq_scope,
                        if (rc){
                                condlog (0, "%s: failed to create thread %d", mpp->wwid, rc);
                        }
-                       count = count +1;
+                       count = count + 1;
                }
        }
        for( i=0; i < active_pathcount ; i++){
index 2400eda..9687399 100644 (file)
@@ -210,7 +210,7 @@ setup_default_blist (struct config * conf)
                        if (alloc_ble_device(conf->blist_device))
                                return 1;
                        ble = VECTOR_SLOT(conf->blist_device,
-                                         VECTOR_SIZE(conf->blist_device) -1);
+                                         VECTOR_SIZE(conf->blist_device) - 1);
                        if (set_ble_device(conf->blist_device,
                                           STRDUP(hwe->vendor),
                                           STRDUP(hwe->bl_product),
index c4ef8a8..b53078f 100644 (file)
@@ -345,7 +345,7 @@ libcheck_check (struct checker * c)
                r = pthread_cond_timedwait(&ct->active, &ct->lock, &tsp);
                tur_status = ct->state;
                strncpy(c->message, ct->message,CHECKER_MSG_LEN);
-               c->message[CHECKER_MSG_LEN -1] = '\0';
+               c->message[CHECKER_MSG_LEN - 1] = '\0';
                pthread_mutex_unlock(&ct->lock);
                if (ct->thread &&
                    (tur_status == PATH_PENDING || tur_status == PATH_UNCHECKED)) {
index 5bf0740..2cf0a9c 100644 (file)
@@ -662,7 +662,7 @@ void mpath_print_buf_readfullstat( struct prin_resp *pr_buff)
 
                if (pr_buff->prin_descriptor.prin_readfd.descriptors[i]->flag & 0x1) {
                        printf("      << Reservation holder >>\n");
-                       j = ((pr_buff->prin_descriptor.prin_readfd.descriptors[i]->scope_type>> 4) & 0xf);
+                       j = ((pr_buff->prin_descriptor.prin_readfd.descriptors[i]->scope_type >> 4) & 0xf);
                        if (0 == j)
                                printf("      scope: LU_SCOPE, ");
                        else