diff options
| -rw-r--r-- | firmware/drivers/ata.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 38face0..23f65b3 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -1429,8 +1429,7 @@ void ata_get_info(struct storage_info *info) static char revision[4]; int i; info->sector_size = SECTOR_SIZE; - info->num_sectors= ((unsigned long)identify_info[61] << 16 | \ - (unsigned long)identify_info[60]); + info->num_sectors= total_sectors; src = (unsigned short*)&identify_info[27]; dest = (unsigned short*)vendor; |