Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2012 05:01:01 +0000 (UTC)
From:      Bryan Venteicher <bryanv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244136 - head/sys/dev/virtio/scsi
Message-ID:  <201212120501.qBC511rK065258@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bryanv
Date: Wed Dec 12 05:01:01 2012
New Revision: 244136
URL: http://svnweb.freebsd.org/changeset/base/244136

Log:
  virtio_scsi: Remove duplicated lines
  
  These must have been accidently copied from the if statement a few
  lines later. Also remove parameter name from function prototype.
  
  Approved by:	grehan (mentor)

Modified:
  head/sys/dev/virtio/scsi/virtio_scsi.c

Modified: head/sys/dev/virtio/scsi/virtio_scsi.c
==============================================================================
--- head/sys/dev/virtio/scsi/virtio_scsi.c	Wed Dec 12 05:00:26 2012	(r244135)
+++ head/sys/dev/virtio/scsi/virtio_scsi.c	Wed Dec 12 05:01:01 2012	(r244136)
@@ -129,7 +129,7 @@ static int 	vtscsi_execute_abort_task_cm
 static int 	vtscsi_execute_reset_dev_cmd(struct vtscsi_softc *,
 		    struct vtscsi_request *);
 
-static void 	vtscsi_get_request_lun(uint8_t lun[], target_id_t *, lun_id_t *);
+static void 	vtscsi_get_request_lun(uint8_t [], target_id_t *, lun_id_t *);
 static void	vtscsi_set_request_lun(struct ccb_hdr *, uint8_t []);
 static void	vtscsi_init_scsi_cmd_req(struct ccb_scsiio *,
 		    struct virtio_scsi_cmd_req *);
@@ -1673,9 +1673,6 @@ vtscsi_announce(struct vtscsi_softc *sc,
 {
 	struct cam_path *path;
 
-		xpt_async(ac_code, sc->vtscsi_path, NULL);
-		return;
-
 	/* Use the wildcard path from our softc for bus announcements. */
 	if (target_id == CAM_TARGET_WILDCARD && lun_id == CAM_LUN_WILDCARD) {
 		xpt_async(ac_code, sc->vtscsi_path, NULL);



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