scsi: Remove unnecessary condition in sd_read_block_limits()
PATCH 1/1 scsi: Remove unnecessary condition in sd_read_block_limits()
After series of changes around WRITE_SAME and UNMAP setup we ended up with leftover unnecessary condition. Remove it.
Signed-off-by Lukas Czerner <[email protected]>
--- drivers/scsi/sd.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/sd.c +0 -2
@@ -2915,8 +2915,6 @@ static void sd_read_block_limits(struct scsi_disk *sdkp)sd_config_discard (sdkp,SD_LBP_WS16 ); else if (sdkp->lbpws10) sd_config_discard(sdkp, SD_LBP_WS10); - else if (sdkp->lbpu && sdkp->max_unmap_blocks) - sd_config_discard(sdkp, SD_LBP_UNMAP); elsesd_config_discard (sdkp ,SD_LBP_DISABLE ); }
Signature · 1 line
2.7.5
Quoted 2 lines · Lukas Czerner
After series of changes around
WRITE_SAMEand UNMAP setup we ended up with leftover unnecessary condition. Remove it.
A similar patch was sitting in my tree and waiting to be posted. But since you posted this first:
Reviewed-by Bart Van Assche <[email protected]>
Lukas,
Quoted 2 lines
After series of changes around
WRITE_SAMEand UNMAP setup we ended up with leftover unnecessary condition. Remove it.
Yeah, lbprz went away and made it redundant. Applied to 4.14/scsi-fixes. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering