Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2012 14:14:16 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r232968 - stable/8/sys/cam/scsi
Message-ID:  <201203141414.q2EEEG21017023@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Mar 14 14:14:16 2012
New Revision: 232968
URL: http://svn.freebsd.org/changeset/base/232968

Log:
  Dummy-initizlize variables to fix build breakage after r232942, because of
  gcc falsely reporting variables as uninitialized. Code committed at that
  revision don't even touch half of mentioned variables.
  
  This is direct commit to 8-STABLE, as HEAD and 9-STABLE have no problem.

Modified:
  stable/8/sys/cam/scsi/scsi_da.c

Modified: stable/8/sys/cam/scsi/scsi_da.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_da.c	Wed Mar 14 14:01:51 2012	(r232967)
+++ stable/8/sys/cam/scsi/scsi_da.c	Wed Mar 14 14:14:16 2012	(r232968)
@@ -1960,7 +1960,8 @@ dadone(struct cam_periph *periph, union 
 					scsi_extract_sense(sense, &error_code,
 							   &sense_key, 
 							   &asc, &ascq);
-				}
+				} else
+					error_code = sense_key = asc = ascq = 0;
 				/*
 				 * If we tried READ CAPACITY(16) and failed,
 				 * fallback to READ CAPACITY(10).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203141414.q2EEEG21017023>