From owner-svn-src-all@FreeBSD.ORG Wed Dec 12 05:01:01 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C7808434; Wed, 12 Dec 2012 05:01:01 +0000 (UTC) (envelope-from bryanv@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id AD9BB8FC0C; Wed, 12 Dec 2012 05:01:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBC511mS065259; Wed, 12 Dec 2012 05:01:01 GMT (envelope-from bryanv@svn.freebsd.org) Received: (from bryanv@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBC511rK065258; Wed, 12 Dec 2012 05:01:01 GMT (envelope-from bryanv@svn.freebsd.org) Message-Id: <201212120501.qBC511rK065258@svn.freebsd.org> From: Bryan Venteicher Date: Wed, 12 Dec 2012 05:01:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244136 - head/sys/dev/virtio/scsi X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 05:01:01 -0000 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);