Date: Thu, 2 Jan 2025 18:28:23 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: e74465f1778d - main - cpsw: Remove duplicate call to bus_generic_detach Message-ID: <202501021828.502ISNs8066328@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e74465f1778dfa0d01c41b592153d36b1dc647ed commit e74465f1778dfa0d01c41b592153d36b1dc647ed Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2025-01-02 18:23:02 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501021828.502ISNs8066328>