diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 35a785609364e375ea9caaa6c214b4b5a6364c5e..9846c6ab2aaa92eeab130a92fe4d7b8d539b624c 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -1626,7 +1626,7 @@ static unsigned int sd_completed_bytes(struct scsi_cmnd *scmd) end_lba <<= 1; } else { /* be careful ... don't want any overflows */ - u64 factor = scmd->device->sector_size / 512; + unsigned int factor = scmd->device->sector_size / 512; do_div(start_lba, factor); do_div(end_lba, factor); }