Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2009 17:34:55 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187957 - head/sys/cam/scsi
Message-ID:  <200901311734.n0VHYt0o030075@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat Jan 31 17:34:55 2009
New Revision: 187957
URL: http://svn.freebsd.org/changeset/base/187957

Log:
  There is no need to initialize the variable here.
  
  Submitted by:	Christoph Mallon christoph.mallon@gmx.de
  Reviewed by:	kib (as part of a larger patch)
  MFC after:	2 weeks

Modified:
  head/sys/cam/scsi/scsi_pass.c

Modified: head/sys/cam/scsi/scsi_pass.c
==============================================================================
--- head/sys/cam/scsi/scsi_pass.c	Sat Jan 31 13:48:15 2009	(r187956)
+++ head/sys/cam/scsi/scsi_pass.c	Sat Jan 31 17:34:55 2009	(r187957)
@@ -298,8 +298,6 @@ passopen(struct cdev *dev, int flags, in
 	struct pass_softc *softc;
 	int error;
 
-	error = 0; /* default to no error */
-
 	periph = (struct cam_periph *)dev->si_drv1;
 	if (cam_periph_acquire(periph) != CAM_REQ_CMP)
 		return (ENXIO);



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