03_ide_diag_taskfile_use_init_drive_cmd.patch

        In ide_diag_taskfile(), taskfile rq was initialized using
        memset().  Use init_drive_cmd() instead.

Signed-off-by: Tejun Heo <[EMAIL PROTECTED]>

 ide-taskfile.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

Index: linux-ide/drivers/ide/ide-taskfile.c
===================================================================
--- linux-ide.orig/drivers/ide/ide-taskfile.c   2005-02-10 17:38:00.437024304 
+0900
+++ linux-ide/drivers/ide/ide-taskfile.c        2005-02-10 17:38:00.832957893 
+0900
@@ -469,8 +469,7 @@ static int ide_diag_taskfile(ide_drive_t
 {
        struct request rq;
 
-       memset(&rq, 0, sizeof(rq));
-       rq.flags = REQ_DRIVE_TASKFILE;
+       ide_init_drive_cmd(&rq);
        rq.buffer = buf;
 
        /*
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to