Module Name:    src
Committed By:   christos
Date:           Sun Oct  8 21:33:38 UTC 2017

Modified Files:
        src/sys/dev/scsipi: atapi_wdc.c

Log Message:
don't initialize tfd twice.


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/sys/dev/scsipi/atapi_wdc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/atapi_wdc.c
diff -u src/sys/dev/scsipi/atapi_wdc.c:1.126 src/sys/dev/scsipi/atapi_wdc.c:1.127
--- src/sys/dev/scsipi/atapi_wdc.c:1.126	Sun Oct  8 17:29:34 2017
+++ src/sys/dev/scsipi/atapi_wdc.c	Sun Oct  8 17:33:38 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: atapi_wdc.c,v 1.126 2017/10/08 21:29:34 christos Exp $	*/
+/*	$NetBSD: atapi_wdc.c,v 1.127 2017/10/08 21:33:38 christos Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.126 2017/10/08 21:29:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.127 2017/10/08 21:33:38 christos Exp $");
 
 #ifndef ATADEBUG
 #define ATADEBUG
@@ -1079,8 +1079,8 @@ wdc_atapi_phase_complete(struct ata_xfer
 			}
 			return;
 		}
-	} else
-		tfd = 0;
+	}
+
 
 	/*
 	 * Some drive occasionally set WDCS_ERR with

Reply via email to