From nobody Thu Jan 02 18:28:23 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YPFZb6L3sz5jnRb; Thu, 02 Jan 2025 18:28:23 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YPFZb3cFCz4tny; Thu, 2 Jan 2025 18:28:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735842503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6vEHZvL4xC0iA2F9HIEnJ+L64fKncgFe86OmPrJGXNo=; b=drsAGFc/YAXkBpFALjl7Lk7K7nJTctHZ8zlYaYwUln8QEgOD1t1mLAzoP/sz2Woij1ubLD bMPhXF0k4sa2nGFrA2Zk/XH27YVQe1LDujFOb53fvv9JrbxWMDiipQ2tkzbYhlXGkSjb2Q VYpVjfyx8C8EvmkRirgmStsAwJxGPsYDu5y8wfGQjhu6Mg4liWzKEGsBrCZ/VnZtTD3ynE m0d3PO08q80GuS78awuPEtY9e5Z2exsaXdwKlwhQ7F1tns9gcSQXwCemGSwXCLLvPXCzhY VA5kxA2MI8VFXkbYBB6BDD1qLF2HXpLyq2LoNMYXFqL2ahXXT/FbsFT2P8PibQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735842503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6vEHZvL4xC0iA2F9HIEnJ+L64fKncgFe86OmPrJGXNo=; b=VauMIXpQUd5WUMFhJT5dC1+7Y5wF3dU9+l8W/AiYeCREelWO8e5oFaGlMFSK/zBQeQ7a2l C3Ifd+ZurKYlaqX6ShNrvmco/A8SpWIAy6kzfzbq+NWU6SQKsWUjaqYhYYlgesH4DYM2OS ofFaTtoTccgq3sulaE4H6o5p/FYv5p1rAoOz7AivuPwswl3M1FfpX6tbhDzBrIw+V+1hwC A1E513nroesPAHxHzTupOjpqcn/w0tuweGSvExnJ8FIR6bNh/FW67l514y1VgSc7ZMoORb c6Y4qbpwj8StuJkeaGD6USvOwA3Hbd1RoBwTohGJXQFagTXuENdhmIemL9lz8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735842503; a=rsa-sha256; cv=none; b=p4MBEsy76XsYFy0Bzp57Z7hdFxKv3NomxTmSFVTGBNdBg51tzh2T0otEeop5i4+wdjeV1c e8yqj7udoN9r9GQS0g80clCm7Tn7xBOelH8oLmfxa8FB9mWNfd+W6wg78Bz7HVwwMaR+U6 pRq+ySmzFD0jscwq6FdfxhUG4TH2sXsRnRM7cFqYlDKrjSWpxZIbOQTgYZeXTA6xxW7L3N Tn/96yOJOw0a5qTO/yoSf0ZXCcaPCzcnez+I+4eQ9gPTmkTbRaCJxkYOp7SmKn6NIxDx6g PblQodE/yvVtjxhwoaoV/UKnlgLEAJKJIs0g46EmnYgtwrnUcjSTTfLyOOR2/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YPFZb3D7xznlB; Thu, 02 Jan 2025 18:28:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 502ISNlL066331; Thu, 2 Jan 2025 18:28:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 502ISNs8066328; Thu, 2 Jan 2025 18:28:23 GMT (envelope-from git) Date: Thu, 2 Jan 2025 18:28:23 GMT Message-Id: <202501021828.502ISNs8066328@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: e74465f1778d - main - cpsw: Remove duplicate call to bus_generic_detach List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e74465f1778dfa0d01c41b592153d36b1dc647ed Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e74465f1778dfa0d01c41b592153d36b1dc647ed commit e74465f1778dfa0d01c41b592153d36b1dc647ed Author: John Baldwin AuthorDate: 2025-01-02 18:23:02 +0000 Commit: John Baldwin CommitDate: 2025-01-02 18:23:02 +0000 cpsw: Remove duplicate call to bus_generic_detach Differential Revision: https://reviews.freebsd.org/D47963 --- sys/arm/ti/cpsw/if_cpsw.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/arm/ti/cpsw/if_cpsw.c b/sys/arm/ti/cpsw/if_cpsw.c index 5b443e6c2712..9fc3f414477b 100644 --- a/sys/arm/ti/cpsw/if_cpsw.c +++ b/sys/arm/ti/cpsw/if_cpsw.c @@ -960,11 +960,6 @@ cpsw_detach(device_t dev) mtx_destroy(&sc->rx.lock); mtx_destroy(&sc->tx.lock); - /* Detach the switch device, if present. */ - error = bus_generic_detach(dev); - if (error != 0) - return (error); - return (0); }