ide: remove SECTOR_WORDS define
Just use SECTOR_SIZE instead. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@ -768,7 +768,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
|
||||
|
||||
if (args[3]) {
|
||||
tfargs.tf_flags |= IDE_TFLAG_IO_16BIT;
|
||||
bufsize = SECTOR_WORDS * 4 * args[3];
|
||||
bufsize = SECTOR_SIZE * args[3];
|
||||
buf = kzalloc(bufsize, GFP_KERNEL);
|
||||
if (buf == NULL)
|
||||
return -ENOMEM;
|
||||
|
Reference in New Issue
Block a user