From owner-svn-src-all@freebsd.org Tue Sep 1 22:03:59 2020 Return-Path: Delivered-To: svn-src-all@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 046B337E20B; Tue, 1 Sep 2020 22:03:59 +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 4Bh1LN4yYpz4cgS; Tue, 1 Sep 2020 22:03:56 +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 0C77F20063; Tue, 1 Sep 2020 22:03:56 +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 081M3tKa055093; Tue, 1 Sep 2020 22:03:55 GMT (envelope-from mjg@FreeBSD.org) Received: (from mjg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 081M3tcm055090; Tue, 1 Sep 2020 22:03:55 GMT (envelope-from mjg@FreeBSD.org) Message-Id: <202009012203.081M3tcm055090@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:03:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365192 - in head/sys/dev/ntb: . ntb_hw X-SVN-Group: head X-SVN-Commit-Author: mjg X-SVN-Commit-Paths: in head/sys/dev/ntb: . ntb_hw X-SVN-Commit-Revision: 365192 X-SVN-Commit-Repository: base 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.33 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: Tue, 01 Sep 2020 22:03:59 -0000 Author: mjg Date: Tue Sep 1 22:03:55 2020 New Revision: 365192 URL: https://svnweb.freebsd.org/changeset/base/365192 Log: ntb: clean up empty lines in .c and .h files Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c head/sys/dev/ntb/ntb_transport.c Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c ============================================================================== --- head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c Tue Sep 1 22:03:46 2020 (r365191) +++ head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c Tue Sep 1 22:03:55 2020 (r365192) @@ -81,7 +81,6 @@ __FBSDID("$FreeBSD$"); MALLOC_DEFINE(M_AMD_NTB, "amd_ntb_hw", "amd_ntb_hw driver memory allocations"); static const struct amd_ntb_hw_info amd_ntb_hw_info_list[] = { - { .vendor_id = NTB_HW_AMD_VENDOR_ID, .device_id = NTB_HW_AMD_DEVICE_ID1, .mw_count = 3, @@ -686,7 +685,6 @@ amd_ntb_peer_spad_write(device_t dev, unsigned int idx return (0); } - /* * AMD NTB INIT */ @@ -871,7 +869,6 @@ amd_ntb_setup_isr(struct amd_ntb_softc *ntb, uint16_t flags |= RF_SHAREABLE; for (i = 0; i < num_vectors; i++) { - /* RID should be 0 for intx */ if (intx) ntb->int_info[i].rid = i; @@ -911,7 +908,7 @@ static int amd_ntb_create_msix_vec(struct amd_ntb_softc *ntb, uint32_t max_vectors) { uint8_t i; - + ntb->msix_vec = malloc(max_vectors * sizeof(*ntb->msix_vec), M_AMD_NTB, M_ZERO | M_WAITOK); Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c ============================================================================== --- head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c Tue Sep 1 22:03:46 2020 (r365191) +++ head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c Tue Sep 1 22:03:55 2020 (r365192) @@ -1682,7 +1682,6 @@ configure_atom_secondary_side_bars(struct ntb_softc *n } } - /* * When working around Xeon SDOORBELL errata by remapping remote registers in a * MW, limit the B2B MW to half a MW. By sharing a MW, half the shared MW Modified: head/sys/dev/ntb/ntb_transport.c ============================================================================== --- head/sys/dev/ntb/ntb_transport.c Tue Sep 1 22:03:46 2020 (r365191) +++ head/sys/dev/ntb/ntb_transport.c Tue Sep 1 22:03:55 2020 (r365192) @@ -757,8 +757,6 @@ ntb_transport_link_up(struct ntb_transport_qp *qp) callout_reset(&qp->link_work, 0, ntb_qp_link_work, qp); } - - /* Transport Tx */ /** @@ -1204,7 +1202,6 @@ ntb_transport_link_work(void *arg) mw->rx_size = val64; val64 = roundup(val64, mw->xlat_align_size); if (mw->buff_size != val64) { - rc = ntb_set_mw(nt, i, val64); if (rc != 0) { ntb_printf(0, "link up set mw%d fails, rc %d\n", @@ -1592,7 +1589,6 @@ ntb_send_link_down(struct ntb_transport_qp *qp) ntb_qp_link_down_reset(qp); } - /* List Management */