OSDN Git Service

nvme-fc: fix for a minor typos
authorMilan P. Gandhi <mgandhi@redhat.com>
Fri, 10 Aug 2018 09:24:02 +0000 (14:54 +0530)
committerChristoph Hellwig <hch@lst.de>
Mon, 1 Oct 2018 21:16:09 +0000 (14:16 -0700)
Signed-off-by: Milan P. Gandhi <mgandhi@redhat.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c
drivers/nvme/target/fc.c

index 611e70c..fd70007 100644 (file)
@@ -1385,7 +1385,7 @@ nvme_fc_disconnect_assoc_done(struct nvmefc_ls_req *lsreq, int status)
 
        __nvme_fc_finish_ls_req(lsop);
 
-       /* fc-nvme iniator doesn't care about success or failure of cmd */
+       /* fc-nvme initiator doesn't care about success or failure of cmd */
 
        kfree(lsop);
 }
@@ -3159,7 +3159,7 @@ nvme_fc_parse_traddr(struct nvmet_fc_traddr *traddr, char *buf, size_t blen)
        substring_t wwn = { name, &name[sizeof(name)-1] };
        int nnoffset, pnoffset;
 
-       /* validate it string one of the 2 allowed formats */
+       /* validate if string is one of the 2 allowed formats */
        if (strnlen(buf, blen) == NVME_FC_TRADDR_MAXLENGTH &&
                        !strncmp(buf, "nn-0x", NVME_FC_TRADDR_OXNNLEN) &&
                        !strncmp(&buf[NVME_FC_TRADDR_MAX_PN_OFFSET],
index 29b4b23..a390567 100644 (file)
@@ -2468,7 +2468,7 @@ nvme_fc_parse_traddr(struct nvmet_fc_traddr *traddr, char *buf, size_t blen)
        substring_t wwn = { name, &name[sizeof(name)-1] };
        int nnoffset, pnoffset;
 
-       /* validate it string one of the 2 allowed formats */
+       /* validate if string is one of the 2 allowed formats */
        if (strnlen(buf, blen) == NVME_FC_TRADDR_MAXLENGTH &&
                        !strncmp(buf, "nn-0x", NVME_FC_TRADDR_OXNNLEN) &&
                        !strncmp(&buf[NVME_FC_TRADDR_MAX_PN_OFFSET],