scst_sysfs: Remove dead code

Detected by Coverity.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7865 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-01-05 22:20:01 +00:00
parent e11462039a
commit 941e324b99

View File

@@ -3966,7 +3966,7 @@ static ssize_t scst_dev_dif_mode_show(struct kobject *kobj,
if (dev->dev_dif_mode & SCST_DIF_MODE_TGT)
pos += scnprintf(&buf[pos], SCST_SYSFS_BLOCK_SIZE - pos,
"%s%s", (j == pos) ? "" : "|", SCST_DIF_MODE_TGT_STR);
"%s", SCST_DIF_MODE_TGT_STR);
if (dev->dev_dif_mode & SCST_DIF_MODE_SCST)
pos += scnprintf(&buf[pos], SCST_SYSFS_BLOCK_SIZE - pos,