Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/ntfs remove useless initialization, KNF



details:   https://anonhg.NetBSD.org/src/rev/4981d918846d
branches:  trunk
changeset: 787699:4981d918846d
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jun 28 15:46:37 2013 +0000

description:
remove useless initialization, KNF
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html

diffstat:

 sys/fs/ntfs/ntfs_subr.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 4297d62099bd -r 4981d918846d sys/fs/ntfs/ntfs_subr.c
--- a/sys/fs/ntfs/ntfs_subr.c   Fri Jun 28 15:44:27 2013 +0000
+++ b/sys/fs/ntfs/ntfs_subr.c   Fri Jun 28 15:46:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_subr.c,v 1.49 2012/12/20 08:03:43 hannken Exp $   */
+/*     $NetBSD: ntfs_subr.c,v 1.50 2013/06/28 15:46:37 christos Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko (semenu%FreeBSD.org@localhost)
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_subr.c,v 1.49 2012/12/20 08:03:43 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_subr.c,v 1.50 2013/06/28 15:46:37 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1795,10 +1795,12 @@
        if (vap->va_compression && vap->va_compressalg) {
                u_int8_t       *cup;
                u_int8_t       *uup;
-               off_t           off = roff, left = rsize, tocopy;
-               void *        data = rdata;
+               off_t           off, roff, left, tocopy;
+               void           *data
                cn_t            cn;
 
+               left = rsize;
+               data = rdata;
                ddprintf(("%s: compression: %d\n", __func__,
                         vap->va_compressalg));
 



Home | Main Index | Thread Index | Old Index