aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r--drivers/scsi/sd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 03fcbab30033..3d3ad7d1b779 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -245,7 +245,7 @@ static int sd_init_command(struct scsi_cmnd * SCpnt)
245 * SG_IO from block layer already setup, just copy cdb basically 245 * SG_IO from block layer already setup, just copy cdb basically
246 */ 246 */
247 if (blk_pc_request(rq)) { 247 if (blk_pc_request(rq)) {
248 scsi_setup_blk_pc_cmnd(SCpnt, SD_PASSTHROUGH_RETRIES); 248 scsi_setup_blk_pc_cmnd(SCpnt);
249 if (rq->timeout) 249 if (rq->timeout)
250 timeout = rq->timeout; 250 timeout = rq->timeout;
251 251
@@ -1495,9 +1495,7 @@ static int sd_revalidate_disk(struct gendisk *disk)
1495 */ 1495 */
1496 if (sdkp->media_present) { 1496 if (sdkp->media_present) {
1497 sd_read_capacity(sdkp, disk->disk_name, buffer); 1497 sd_read_capacity(sdkp, disk->disk_name, buffer);
1498 if (sdp->removable) 1498 sd_read_write_protect_flag(sdkp, disk->disk_name, buffer);
1499 sd_read_write_protect_flag(sdkp, disk->disk_name,
1500 buffer);
1501 sd_read_cache_type(sdkp, disk->disk_name, buffer); 1499 sd_read_cache_type(sdkp, disk->disk_name, buffer);
1502 } 1500 }
1503 1501