ide-disk_proc: use macro to replace magic number

Submitted by Xinghai Yu on July 25, 2013, 10:32 a.m.

Details

Message ID 1374748362-19687-1-git-send-email-yuxinghai@cn.fujitsu.com
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Xinghai Yu July 25, 2013, 10:32 a.m.
Signed-off-by: Xinghai Yu <yuxinghai@cn.fujitsu.com>
---
 drivers/ide/ide-ioctls.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

David Miller Sept. 5, 2013, 7:38 p.m.
From: Xinghai Yu <yuxinghai@cn.fujitsu.com>
Date: Thu, 25 Jul 2013 18:32:42 +0800

> Signed-off-by: Xinghai Yu <yuxinghai@cn.fujitsu.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch hide | download patch | download mbox

diff --git a/drivers/ide/ide-ioctls.c b/drivers/ide/ide-ioctls.c
index 4d19eb9..6233fa2 100644
--- a/drivers/ide/ide-ioctls.c
+++ b/drivers/ide/ide-ioctls.c
@@ -141,8 +141,8 @@  static int ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg)
 	if (args[0] == ATA_CMD_SMART) {
 		tf->nsect = args[3];
 		tf->lbal  = args[1];
-		tf->lbam  = 0x4f;
-		tf->lbah  = 0xc2;
+		tf->lbam  = ATA_SMART_LBAM_PASS;
+		tf->lbah  = ATA_SMART_LBAH_PASS;
 		cmd.valid.out.tf = IDE_VALID_OUT_TF;
 		cmd.valid.in.tf  = IDE_VALID_NSECT;
 	} else {