Skip to content

Commit 92c0b10

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: ufs: core: Remove two constants
The SCSI host template members .cmd_per_lun and .can_queue are copied into the SCSI host data structure. Before these are used, these are overwritten by ufshcd_init(). Hence, this patch does not change any functionality. Reviewed-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Keoseong Park <[email protected]> Reviewed-by: Peter Wang <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 93ef12d commit 92c0b10

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ EXPORT_SYMBOL_GPL(ufshcd_dump_regs);
164164
enum {
165165
UFSHCD_MAX_CHANNEL = 0,
166166
UFSHCD_MAX_ID = 1,
167-
UFSHCD_CMD_PER_LUN = 32 - UFSHCD_NUM_RESERVED,
168-
UFSHCD_CAN_QUEUE = 32 - UFSHCD_NUM_RESERVED,
169167
};
170168

171169
static const char *const ufshcd_state_name[] = {
@@ -8958,8 +8956,6 @@ static const struct scsi_host_template ufshcd_driver_template = {
89588956
.eh_timed_out = ufshcd_eh_timed_out,
89598957
.this_id = -1,
89608958
.sg_tablesize = SG_ALL,
8961-
.cmd_per_lun = UFSHCD_CMD_PER_LUN,
8962-
.can_queue = UFSHCD_CAN_QUEUE,
89638959
.max_segment_size = PRDT_DATA_BYTE_COUNT_MAX,
89648960
.max_sectors = SZ_1M / SECTOR_SIZE,
89658961
.max_host_blocked = 1,

0 commit comments

Comments
 (0)