Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata KNF. No functional change.



details:   https://anonhg.NetBSD.org/src/rev/e1086106127f
branches:  trunk
changeset: 823817:e1086106127f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed May 10 08:46:39 2017 +0000

description:
KNF. No functional change.

diffstat:

 sys/dev/ata/sata_subr.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 5dd52d7959c3 -r e1086106127f sys/dev/ata/sata_subr.c
--- a/sys/dev/ata/sata_subr.c   Wed May 10 08:02:37 2017 +0000
+++ b/sys/dev/ata/sata_subr.c   Wed May 10 08:46:39 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sata_subr.c,v 1.21 2013/04/03 17:15:07 bouyer Exp $    */
+/*     $NetBSD: sata_subr.c,v 1.22 2017/05/10 08:46:39 msaitoh Exp $   */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
  * Common functions for Serial ATA.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sata_subr.c,v 1.21 2013/04/03 17:15:07 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sata_subr.c,v 1.22 2017/05/10 08:46:39 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -85,14 +85,15 @@
        uint32_t scontrol, sstatus;
        int i;
 
-       /* bring the PHYs online.
+       /*
+        * bring the PHYs online.
         * The work-around for errata #1 of the Intel GD31244 says that we must
         * write 0 to the port first to be sure of correctly initializing
         * the device. It doesn't hurt for other devices.
         */
        bus_space_write_4(sata_t, scontrol_r, 0, 0);
        scontrol = SControl_IPM_NONE | SControl_SPD_ANY | SControl_DET_INIT;
-       bus_space_write_4 (sata_t, scontrol_r, 0, scontrol);
+       bus_space_write_4(sata_t, scontrol_r, 0, scontrol);
 
        ata_delay(50, "sataup", flags);
        scontrol &= ~SControl_DET_INIT;



Home | Main Index | Thread Index | Old Index