git: e74465f1778d - main - cpsw: Remove duplicate call to bus_generic_detach
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Jan 2025 18:28:23 UTC
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); }