Source-Changes-HG archive

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

[src/trunk]: src/sys/kern clear error for new ioctls.



details:   https://anonhg.NetBSD.org/src/rev/dec8caec214f
branches:  trunk
changeset: 805337:dec8caec214f
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Mon Dec 29 18:54:19 2014 +0000

description:
clear error for new ioctls.

diffstat:

 sys/kern/subr_disk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1cfa8916ac9e -r dec8caec214f sys/kern/subr_disk.c
--- a/sys/kern/subr_disk.c      Mon Dec 29 18:41:20 2014 +0000
+++ b/sys/kern/subr_disk.c      Mon Dec 29 18:54:19 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_disk.c,v 1.104 2014/12/29 18:41:20 mlelstv Exp $  */
+/*     $NetBSD: subr_disk.c,v 1.105 2014/12/29 18:54:19 mlelstv Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1999, 2000, 2009 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.104 2014/12/29 18:41:20 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.105 2014/12/29 18:54:19 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -487,7 +487,7 @@
 disk_ioctl(struct disk *diskp, u_long cmd, void *data, int flag,
           struct lwp *l)
 {
-       int error;
+       int error = 0;
 
        switch (cmd) {
        case DIOCGDISKINFO:



Home | Main Index | Thread Index | Old Index