Skip to contentSkip to conversation

nvme-cli: remove unnecessary assignments

PATCH New Chaitanya Kulkarni 2 participants 2 messages Jul 26, 2018 – Jul 31, 2018 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme-cli: remove unnecessary assignments

This removes the unnecessary assignment of the variable.

Signed-off-by Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
---
 fabrics.c | 3 ---
 1 file changed, 3 deletions(-)
fabrics.c +0 -3
index 9aee8f8..8437e32 100644
@@ -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");
Signature · 1 line
2.17.0
Applied
#1 lore raw

PATCH 1/1 nvme-cli: remove unnecessary assignments

Quoted 1 line · Chaitanya Kulkarni

This removes the unnecessary assignment of the variable.

Applied, thanks!