scst_sysfs: Remove dead code

Detected by Coverity.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
Bart Van Assche
2015-05-06 10:55:28 +02:00
parent 631ad2560b
commit 947bdc3227

View File

@@ -3611,7 +3611,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,