Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi initialize tfd



details:   https://anonhg.NetBSD.org/src/rev/3286c379a915
branches:  trunk
changeset: 827020:3286c379a915
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 08 21:29:34 2017 +0000

description:
initialize tfd

diffstat:

 sys/dev/scsipi/atapi_wdc.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r ce11b60d3ebf -r 3286c379a915 sys/dev/scsipi/atapi_wdc.c
--- a/sys/dev/scsipi/atapi_wdc.c        Sun Oct 08 21:18:14 2017 +0000
+++ b/sys/dev/scsipi/atapi_wdc.c        Sun Oct 08 21:29:34 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atapi_wdc.c,v 1.125 2017/10/08 21:18:14 joerg Exp $    */
+/*     $NetBSD: atapi_wdc.c,v 1.126 2017/10/08 21:29:34 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.125 2017/10/08 21:18:14 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.126 2017/10/08 21:29:34 christos Exp $");
 
 #ifndef ATADEBUG
 #define ATADEBUG
@@ -1079,7 +1079,8 @@
                        }
                        return;
                }
-       }
+       } else
+               tfd = 0;
 
        /*
         * Some drive occasionally set WDCS_ERR with



Home | Main Index | Thread Index | Old Index