From: xiongweimin <[email protected]> Remove dead commented-out code that was left behind during previous refactoring. The code checked for invalid WWN parsing but is no longer used.
Signed-off-by: Weimin Xiong <[email protected]> Co-authored-by: Cursor <[email protected]> --- drivers/vhost/scsi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index 81e905c4c..77e47f246 100644 --- a/drivers/vhost/scsi.c +++ b/drivers/vhost/scsi.c @@ -2841,9 +2841,6 @@ vhost_scsi_make_tport(struct target_fabric_configfs *tf, u64 wwpn = 0; int off = 0; - /* if (vhost_scsi_parse_wwn(name, &wwpn, 1) < 0) - return ERR_PTR(-EINVAL); */ - tport = kzalloc_obj(*tport); if (!tport) { pr_err("Unable to allocate struct vhost_scsi_tport"); -- 2.43.0
