]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: remove unnecessary assignments
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 26 Jul 2018 21:59:13 +0000 (14:59 -0700)
committerKeith Busch <keith.busch@intel.com>
Tue, 31 Jul 2018 14:39:16 +0000 (08:39 -0600)
This removes the unnecessary assignment of the variable.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
fabrics.c

index 9aee8f8c5ee5f2c16309121e0132606c7c1a19ba..8437e323127a4a6842da887ce1f5face49c7e2df 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -627,7 +627,6 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
                len = sprintf(p, ",transport=loop");
                if (len < 0)
                        return -EINVAL;
-               p += len;
                /* we can safely ignore the rest of the entries */
                break;
        case NVMF_TRTYPE_RDMA:
@@ -652,7 +651,6 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
                                      e->trsvcid);
                        if (len < 0)
                                return -EINVAL;
-                       p += len;
                        break;
                default:
                        fprintf(stderr, "skipping unsupported adrfam\n");
@@ -672,7 +670,6 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
                                      e->traddr);
                        if (len < 0)
                                return -EINVAL;
-                       p += len;
                        break;
                default:
                        fprintf(stderr, "skipping unsupported adrfam\n");