aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r--drivers/ide/ide.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index d42216b52a7b..ac6136001615 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -1035,11 +1035,8 @@ int generic_ide_ioctl(ide_drive_t *drive, struct file *file, struct block_device
1035 case HDIO_GET_NICE: 1035 case HDIO_GET_NICE:
1036 return put_user(drive->dsc_overlap << IDE_NICE_DSC_OVERLAP | 1036 return put_user(drive->dsc_overlap << IDE_NICE_DSC_OVERLAP |
1037 drive->atapi_overlap << IDE_NICE_ATAPI_OVERLAP | 1037 drive->atapi_overlap << IDE_NICE_ATAPI_OVERLAP |
1038 drive->nice0 << IDE_NICE_0 | 1038 drive->nice1 << IDE_NICE_1,
1039 drive->nice1 << IDE_NICE_1 |
1040 drive->nice2 << IDE_NICE_2,
1041 (long __user *) arg); 1039 (long __user *) arg);
1042
1043#ifdef CONFIG_IDE_TASK_IOCTL 1040#ifdef CONFIG_IDE_TASK_IOCTL
1044 case HDIO_DRIVE_TASKFILE: 1041 case HDIO_DRIVE_TASKFILE:
1045 if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SYS_RAWIO)) 1042 if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SYS_RAWIO))