Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi appease gcc.
details: https://anonhg.NetBSD.org/src/rev/bb0e8b0e6410
branches: trunk
changeset: 349431:bb0e8b0e6410
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Dec 10 21:17:12 2016 +0000
description:
appease gcc.
diffstat:
sys/dev/scsipi/cd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e05e99114a6d -r bb0e8b0e6410 sys/dev/scsipi/cd.c
--- a/sys/dev/scsipi/cd.c Sat Dec 10 21:04:12 2016 +0000
+++ b/sys/dev/scsipi/cd.c Sat Dec 10 21:17:12 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd.c,v 1.334 2016/12/10 10:26:38 mlelstv Exp $ */
+/* $NetBSD: cd.c,v 1.335 2016/12/10 21:17:12 mlelstv Exp $ */
/*-
* Copyright (c) 1998, 2001, 2003, 2004, 2005, 2008 The NetBSD Foundation,
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.334 2016/12/10 10:26:38 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.335 2016/12/10 21:17:12 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -722,7 +722,7 @@
* If label and device don't agree in sector size use a bounce buffer
*/
if (dksc->sc_dkdev.dk_label->d_secsize != dksc->sc_dkdev.dk_geom.dg_secsize) {
- struct cdbounce *bounce;
+ struct cdbounce *bounce = NULL;
error = cd_make_bounce(cd, bp, &bounce);
if (error)
Home |
Main Index |
Thread Index |
Old Index