Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi pass config_detach error to caller.
details: https://anonhg.NetBSD.org/src/rev/5abaaf95ae53
branches: trunk
changeset: 354519:5abaaf95ae53
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Mon Jun 19 20:52:20 2017 +0000
description:
pass config_detach error to caller.
diffstat:
sys/dev/scsipi/scsipi_base.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r c0cc61fbea68 -r 5abaaf95ae53 sys/dev/scsipi/scsipi_base.c
--- a/sys/dev/scsipi/scsipi_base.c Mon Jun 19 20:12:34 2017 +0000
+++ b/sys/dev/scsipi/scsipi_base.c Mon Jun 19 20:52:20 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsipi_base.c,v 1.176 2017/06/17 22:35:50 mlelstv Exp $ */
+/* $NetBSD: scsipi_base.c,v 1.177 2017/06/19 20:52:20 mlelstv Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.176 2017/06/17 22:35:50 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.177 2017/06/19 20:52:20 mlelstv Exp $");
#ifdef _KERNEL_OPT
#include "opt_scsi.h"
@@ -2403,7 +2403,7 @@
device_t tdev;
int ctarget, mintarget, maxtarget;
int clun, minlun, maxlun;
- int error;
+ int error = 0;
if (target == -1) {
mintarget = 0;
@@ -2453,7 +2453,7 @@
out:
KERNEL_UNLOCK_ONE(curlwp);
- return 0;
+ return error;
}
/*
Home |
Main Index |
Thread Index |
Old Index