diff mbox

[2/4] tcmu: do not display hw max sectors twice

Message ID 1489048929-7992-3-git-send-email-mchristi@redhat.com (mailing list archive)
State Superseded
Headers show

Commit Message

Mike Christie March 9, 2017, 8:42 a.m. UTC
The patch:
added HW max sectors support to tcmu, and added another hw max sectors
field in the show_configfs_dev_params data and it was actaully
displaying the block size instead of max sectors. So this patch
just drops it since hw max sectors is already printed by lio core.

Signed-off-by: Mike Christie <mchristi@redhat.com>
 drivers/target/target_core_user.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox


diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index 9e6bb8a..4339ab2 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -1135,8 +1135,6 @@  static ssize_t tcmu_show_configfs_dev_params(struct se_device *dev, char *b)
 	bl = sprintf(b + bl, "Config: %s ",
 		     udev->dev_config[0] ? udev->dev_config : "NULL");
 	bl += sprintf(b + bl, "Size: %zu\n", udev->dev_size);
-	bl += sprintf(b + bl, "HW Max Sectors: %u\n",
-		      dev->dev_attrib.hw_block_size);
 	return bl;