Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn32/stand/lib KNF



details:   https://anonhg.NetBSD.org/src/rev/59b83563fbeb
branches:  trunk
changeset: 779205:59b83563fbeb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu May 10 10:48:23 2012 +0000

description:
KNF

diffstat:

 sys/arch/acorn32/stand/lib/riscospart.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r ad37ba1bffec -r 59b83563fbeb sys/arch/acorn32/stand/lib/riscospart.c
--- a/sys/arch/acorn32/stand/lib/riscospart.c   Thu May 10 10:27:09 2012 +0000
+++ b/sys/arch/acorn32/stand/lib/riscospart.c   Thu May 10 10:48:23 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: riscospart.c,v 1.3 2010/11/25 13:45:17 skrll Exp $     */
+/*     $NetBSD: riscospart.c,v 1.4 2012/05/10 10:48:23 skrll Exp $     */
 
 /*-
  * Copyright (c) 2006 Ben Harris
@@ -156,7 +156,8 @@
        buf = alloc(DEV_BSIZE);
        err = DEV_STRATEGY(f->f_dev)(f->f_devdata, F_READ,
            FILECORE_BOOT_SECTOR, DEV_BSIZE, buf, &rsize);
-       if (err != 0) goto out;
+       if (err != 0)
+               goto out;
        bb = (struct filecore_bootblock *) buf;
        if (bb->checksum == filecore_checksum((u_char *)bb)) {
                if (bb->partition_type == PARTITION_FORMAT_RISCBSD)
@@ -168,9 +169,11 @@
                }
        } else
                labelsect = LABELSECTOR;
+printf("%s: labelsect %d\n", __func__, labelsect);
        err = DEV_STRATEGY(f->f_dev)(f->f_devdata, F_READ,
            labelsect, DEV_BSIZE, buf, &rsize);
-       if (err != 0) goto out;
+       if (err != 0)
+               goto out;
        msg = getdisklabel(buf, lp);
        if (msg) {
                printf("%s\n", msg);



Home | Main Index | Thread Index | Old Index