Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi Remove unnecessary initialisation of error
details: https://anonhg.NetBSD.org/src/rev/cd927d16d1d6
branches: trunk
changeset: 790220:cd927d16d1d6
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Sep 28 09:01:36 2013 +0000
description:
Remove unnecessary initialisation of error
diffstat:
sys/dev/scsipi/sd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1b8dd611f777 -r cd927d16d1d6 sys/dev/scsipi/sd.c
--- a/sys/dev/scsipi/sd.c Sat Sep 28 09:00:26 2013 +0000
+++ b/sys/dev/scsipi/sd.c Sat Sep 28 09:01:36 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sd.c,v 1.302 2013/09/26 16:00:54 kiyohara Exp $ */
+/* $NetBSD: sd.c,v 1.303 2013/09/28 09:01:36 skrll Exp $ */
/*-
* Copyright (c) 1998, 2003, 2004 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.302 2013/09/26 16:00:54 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.303 2013/09/28 09:01:36 skrll Exp $");
#include "opt_scsi.h"
@@ -998,7 +998,7 @@
struct sd_softc *sd = device_lookup_private(&sd_cd, SDUNIT(dev));
struct scsipi_periph *periph = sd->sc_periph;
int part = SDPART(dev);
- int error = 0;
+ int error;
int s;
#ifdef __HAVE_OLD_DISKLABEL
struct disklabel *newlabel = NULL;
Home |
Main Index |
Thread Index |
Old Index