diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:28 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:28 -0400 |
commit | 151a670186a0f8441798f90c8701647adb7a1589 (patch) | |
tree | 6932543816b57d841515c48b536c38596bdad139 /drivers/ide/ide-taskfile.c | |
parent | 8185d5aa93e0a5c111adc4952a5b87193a68ae5b (diff) |
ide: remove SECTOR_WORDS define
Just use SECTOR_SIZE instead.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index b1fb815dbf68..7ffe9004a4d6 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c | |||
@@ -768,7 +768,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg) | |||
768 | 768 | ||
769 | if (args[3]) { | 769 | if (args[3]) { |
770 | tfargs.tf_flags |= IDE_TFLAG_IO_16BIT; | 770 | tfargs.tf_flags |= IDE_TFLAG_IO_16BIT; |
771 | bufsize = SECTOR_WORDS * 4 * args[3]; | 771 | bufsize = SECTOR_SIZE * args[3]; |
772 | buf = kzalloc(bufsize, GFP_KERNEL); | 772 | buf = kzalloc(bufsize, GFP_KERNEL); |
773 | if (buf == NULL) | 773 | if (buf == NULL) |
774 | return -ENOMEM; | 774 | return -ENOMEM; |