From owner-svn-src-head@freebsd.org Tue Sep 1 22:07:39 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F1BFC37E937; Tue, 1 Sep 2020 22:07:39 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bh1Qg5SLgz4fll; Tue, 1 Sep 2020 22:07:39 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4E37C20067; Tue, 1 Sep 2020 22:07:38 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 081M7cWq055969; Tue, 1 Sep 2020 22:07:38 GMT (envelope-from mjg@FreeBSD.org) Received: (from mjg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 081M7bDx055967; Tue, 1 Sep 2020 22:07:37 GMT (envelope-from mjg@FreeBSD.org) Message-Id: <202009012207.081M7bDx055967@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mjg set sender to mjg@FreeBSD.org using -f From: Mateusz Guzik Date: Tue, 1 Sep 2020 22:07:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365206 - head/sys/dev/mly X-SVN-Group: head X-SVN-Commit-Author: mjg X-SVN-Commit-Paths: head/sys/dev/mly X-SVN-Commit-Revision: 365206 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 22:07:40 -0000 Author: mjg Date: Tue Sep 1 22:07:37 2020 New Revision: 365206 URL: https://svnweb.freebsd.org/changeset/base/365206 Log: mly: clean up empty lines in .c and .h files Modified: head/sys/dev/mly/mly.c head/sys/dev/mly/mlyvar.h Modified: head/sys/dev/mly/mly.c ============================================================================== --- head/sys/dev/mly/mly.c Tue Sep 1 22:07:26 2020 (r365205) +++ head/sys/dev/mly/mly.c Tue Sep 1 22:07:37 2020 (r365206) @@ -123,7 +123,6 @@ static void mly_timeout(void *arg); #endif void mly_print_controller(int controller); - static d_open_t mly_user_open; static d_close_t mly_user_close; static d_ioctl_t mly_user_ioctl; @@ -1411,7 +1410,6 @@ mly_periodic(void *data) for (bus = 0; bus < sc->mly_cam_channels; bus++) { if (MLY_BUS_IS_VALID(sc, bus)) { for (target = 0; target < MLY_MAX_TARGETS; target++) { - /* ignore the controller in this scan */ if (target == sc->mly_controllerparam->initiator_id) continue; @@ -1504,7 +1502,7 @@ mly_start(struct mly_command *mc) return(EBUSY); } mc->mc_flags |= MLY_CMD_BUSY; - + /* * It's ready, send the command. */ @@ -1520,7 +1518,7 @@ mly_start(struct mly_command *mc) return(EBUSY); } mc->mc_flags |= MLY_CMD_BUSY; - + /* copy in new command */ bcopy(mc->mc_packet->mmbox.data, pkt->mmbox.data, sizeof(pkt->mmbox.data)); /* barrier to ensure completion of previous write before we write the flag */ @@ -1641,7 +1639,6 @@ mly_complete(struct mly_softc *sc) * Spin pulling commands off the completed queue and processing them. */ while ((mc = mly_dequeue_complete(sc)) != NULL) { - /* * Free controller resources, mark command complete. * @@ -1746,7 +1743,7 @@ mly_alloc_commands(struct mly_softc *sc) { struct mly_command *mc; int i, ncmd; - + if (sc->mly_controllerinfo == NULL) { ncmd = 4; } else { @@ -1801,7 +1798,6 @@ mly_release_commands(struct mly_softc *sc) } } - /******************************************************************************** * Command-mapping helper function - populate this command's s/g table * with the s/g entries for its data. @@ -1916,7 +1912,6 @@ mly_unmap_command(struct mly_command *mc) mc->mc_flags &= ~MLY_CMD_MAPPED; } - /******************************************************************************** ******************************************************************************** CAM interface @@ -1958,7 +1953,6 @@ mly_cam_attach(struct mly_softc *sc) if (testenv("hw.mly.register_physical_channels")) { chn = 0; for (i = 0; i < sc->mly_controllerinfo->physical_channels_present; i++, chn++) { - if ((sc->mly_cam_sim[chn] = cam_sim_alloc(mly_cam_action, mly_cam_poll, "mly", sc, device_get_unit(sc->mly_dev), &sc->mly_lock, @@ -2067,7 +2061,6 @@ mly_cam_action(struct cam_sim *sim, union ccb *ccb) MLY_ASSERT_LOCKED(sc); switch (ccb->ccb_h.func_code) { - /* perform SCSI I/O */ case XPT_SCSI_IO: if (!mly_cam_action_io(sim, (struct ccb_scsiio *)&ccb->csio)) @@ -2816,7 +2809,6 @@ mly_print_controller(int controller) } } #endif - /******************************************************************************** ******************************************************************************** Modified: head/sys/dev/mly/mlyvar.h ============================================================================== --- head/sys/dev/mly/mlyvar.h Tue Sep 1 22:07:26 2020 (r365205) +++ head/sys/dev/mly/mlyvar.h Tue Sep 1 22:07:37 2020 (r365206) @@ -309,7 +309,6 @@ struct mly_softc { sc->mly_qstat[qname].q_max = 0; \ } while(0) - #define MLYQ_COMMAND_QUEUE(name, index) \ static __inline void \ mly_initq_ ## name (struct mly_softc *sc) \