diff options
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 8613a1317712..d82795455efb 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -1509,9 +1509,7 @@ static int sd_revalidate_disk(struct gendisk *disk) | |||
1509 | */ | 1509 | */ |
1510 | if (sdkp->media_present) { | 1510 | if (sdkp->media_present) { |
1511 | sd_read_capacity(sdkp, disk->disk_name, buffer); | 1511 | sd_read_capacity(sdkp, disk->disk_name, buffer); |
1512 | if (sdp->removable) | 1512 | sd_read_write_protect_flag(sdkp, disk->disk_name, buffer); |
1513 | sd_read_write_protect_flag(sdkp, disk->disk_name, | ||
1514 | buffer); | ||
1515 | sd_read_cache_type(sdkp, disk->disk_name, buffer); | 1513 | sd_read_cache_type(sdkp, disk->disk_name, buffer); |
1516 | } | 1514 | } |
1517 | 1515 | ||