Module Name:    src
Committed By:   rin
Date:           Tue Feb 28 04:47:41 UTC 2017

Modified Files:
        src/sys/dev/dkwedge: dkwedge_rdb.c

Log Message:
remove unnecessary substitution. no functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/dkwedge/dkwedge_rdb.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/dkwedge/dkwedge_rdb.c
diff -u src/sys/dev/dkwedge/dkwedge_rdb.c:1.3 src/sys/dev/dkwedge/dkwedge_rdb.c:1.4
--- src/sys/dev/dkwedge/dkwedge_rdb.c:1.3	Tue Feb 28 04:46:02 2017
+++ src/sys/dev/dkwedge/dkwedge_rdb.c	Tue Feb 28 04:47:41 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: dkwedge_rdb.c,v 1.3 2017/02/28 04:46:02 rin Exp $	*/
+/*	$NetBSD: dkwedge_rdb.c,v 1.4 2017/02/28 04:47:41 rin Exp $	*/
 
 /*
  * Adapted from arch/amiga/amiga/disksubr.c:
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dkwedge_rdb.c,v 1.3 2017/02/28 04:46:02 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dkwedge_rdb.c,v 1.4 2017/02/28 04:47:41 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/disklabel_rdb.h>
@@ -123,7 +123,7 @@ dkwedge_discover_rdb(struct disk *pdk, s
 	unsigned char archtype;
 	bool found, root, swap;
 
-	secsize = bufsize = DEV_BSIZE << pdk->dk_blkshift;
+	secsize = DEV_BSIZE << pdk->dk_blkshift;
 	bufsize = roundup(MAX(sizeof(struct partblock), sizeof(struct rdblock)),
 	    secsize);
 	bp = DKW_MALLOC(bufsize);

Reply via email to