Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/prep/stand/boot Appease gcc - error: 'error' may be...
details: https://anonhg.NetBSD.org/src/rev/21240d628000
branches: trunk
changeset: 344979:21240d628000
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Apr 30 15:09:25 2016 +0000
description:
Appease gcc - error: 'error' may be used uninitialized in this function
diffstat:
sys/arch/prep/stand/boot/siop.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 3baae82eba0f -r 21240d628000 sys/arch/prep/stand/boot/siop.c
--- a/sys/arch/prep/stand/boot/siop.c Sat Apr 30 15:03:55 2016 +0000
+++ b/sys/arch/prep/stand/boot/siop.c Sat Apr 30 15:09:25 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siop.c,v 1.2 2014/04/03 23:49:47 mrg Exp $ */
+/* $NetBSD: siop.c,v 1.3 2016/04/30 15:09:25 skrll Exp $ */
/*
* Copyright (c) 2010 KIYOHARA Takashi
* All rights reserved.
@@ -864,7 +864,7 @@
{
struct scsi_sense_data *sense;
u_int8_t key;
- int error;
+ int error = 0;
uint32_t info;
static const char *error_mes[] = {
"soft error (corrected)",
@@ -923,7 +923,6 @@
xs->resid = 0; /* not short read */
}
case SKEY_EQUAL:
- error = 0;
break;
case SKEY_NOT_READY:
if (adp->sd->sc_flags & FLAGS_REMOVABLE)
@@ -952,7 +951,6 @@
error = EROFS;
break;
case SKEY_BLANK_CHECK:
- error = 0;
break;
case SKEY_ABORTED_COMMAND:
break;
Home |
Main Index |
Thread Index |
Old Index