Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/dev KNF and space nits



details:   https://anonhg.NetBSD.org/src/rev/4286b58d990f
branches:  trunk
changeset: 782082:4286b58d990f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Oct 14 19:06:25 2012 +0000

description:
KNF and space nits

diffstat:

 sys/arch/x68k/dev/fd.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r 09c3540d8fc6 -r 4286b58d990f sys/arch/x68k/dev/fd.c
--- a/sys/arch/x68k/dev/fd.c    Sun Oct 14 18:42:22 2012 +0000
+++ b/sys/arch/x68k/dev/fd.c    Sun Oct 14 19:06:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.104 2012/10/14 18:38:32 tsutsui Exp $ */
+/*     $NetBSD: fd.c,v 1.105 2012/10/14 19:06:25 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.104 2012/10/14 18:38:32 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.105 2012/10/14 19:06:25 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_m68k_arch.h"
@@ -713,7 +713,7 @@
 
        DPRINTF(("fdstrategy: %s b_blkno %" PRId64 " b_bcount %d cylin %d\n",
            bp->b_flags & B_READ ? "read" : "write",
-                bp->b_blkno, bp->b_bcount, bp->b_cylinder));
+           bp->b_blkno, bp->b_bcount, bp->b_cylinder));
        /* Queue transfer on drive, activate drive and controller if idle. */
        s = splbio();
        bufq_put(fd->sc_q, bp);
@@ -818,7 +818,7 @@
 fd_motor_off(void *arg)
 {
        struct fd_softc *fd = arg;
-       struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev));
+       struct fdc_softc *fdc = device_private(device_parent(fd->sc_dev));
        int s;
 
        DPRINTF(("fd_motor_off:\n"));
@@ -975,8 +975,10 @@
 {
 
 #ifdef DIAGNOSTIC
-       /* only got here if controller's drive queue was inactive; should
-          be in idle state */
+       /*
+        * only got here if controller's drive queue was inactive; should
+        * be in idle state
+        */
        if (fdc->sc_state != DEVIDLE) {
                printf("fdcstart: not idle\n");
                return;



Home | Main Index | Thread Index | Old Index