diff mbox series

[1/6] qedi: Remove additional char from boot target iqnname.

Message ID 20200408064332.19377-2-mrangankar@marvell.com (mailing list archive)
State Mainlined
Commit 2f1ea39870c95aa9fff6a0b48757625a0b22f551
Headers show
Series Miscellaneous fixes | expand

Commit Message

Manish Rangankar April 8, 2020, 6:43 a.m. UTC
While parsing the iSCSI TLV data to MFW request,
fw boot target iqnname string was having additional
character because of which we are getting below error
even after the boot from SAN target were logged-in.

"[qedi_get_protocol_tlv_data:1197]:1: Boot target not set"

Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
---
 drivers/scsi/qedi/qedi_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
index b995b19..2fe1140 100644
--- a/drivers/scsi/qedi/qedi_main.c
+++ b/drivers/scsi/qedi/qedi_main.c
@@ -921,7 +921,7 @@  static void qedi_get_boot_tgt_info(struct nvm_iscsi_block *block,
 	ipv6_en = !!(block->generic.ctrl_flags &
 		     NVM_ISCSI_CFG_GEN_IPV6_ENABLED);
 
-	snprintf(tgt->iscsi_name, sizeof(tgt->iscsi_name), "%s\n",
+	snprintf(tgt->iscsi_name, sizeof(tgt->iscsi_name), "%s",
 		 block->target[index].target_name.byte);
 
 	tgt->ipv6_en = ipv6_en;