Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2009 16:39:43 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192020 - head/sys/dev/ata
Message-ID:  <200905121639.n4CGdhGI027545@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Tue May 12 16:39:43 2009
New Revision: 192020
URL: http://svn.freebsd.org/changeset/base/192020

Log:
  Remove dead code.
  
  Found with:	Coverity Prevent(tm)
  CID:		556

Modified:
  head/sys/dev/ata/atapi-cam.c

Modified: head/sys/dev/ata/atapi-cam.c
==============================================================================
--- head/sys/dev/ata/atapi-cam.c	Tue May 12 16:38:32 2009	(r192019)
+++ head/sys/dev/ata/atapi-cam.c	Tue May 12 16:39:43 2009	(r192020)
@@ -796,14 +796,10 @@ static void
 atapi_async(void *callback_arg, u_int32_t code,
 	     struct cam_path* path, void *arg)
 {
-    struct atapi_xpt_softc *softc;
-    struct cam_sim *sim;
     int targ;
 
     GIANT_REQUIRED;
 
-    sim = (struct cam_sim *) callback_arg;
-    softc = (struct atapi_xpt_softc *) cam_sim_softc(sim);
     switch (code) {
     case AC_LOST_DEVICE:
 	targ = xpt_path_target_id(path);



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