diff options
author | Philip Paeps <philip@FreeBSD.org> | 2020-03-09 04:09:36 +0000 |
---|---|---|
committer | Philip Paeps <philip@FreeBSD.org> | 2020-03-09 04:09:36 +0000 |
commit | 8375d1173f47404c33f6bcccde3094aeb72dcfe6 (patch) | |
tree | c60314d080784411c24bcc5e23aef9f074e7db24 /sys/riscv | |
parent | 7c962201620bd44d7fbd74386e824a708fb4c6e3 (diff) | |
download | src-8375d1173f47404c33f6bcccde3094aeb72dcfe6.tar.gz src-8375d1173f47404c33f6bcccde3094aeb72dcfe6.zip |
fuspi: silence build warning, plug resource leak
This silences an "unused label" warning as well as fixes the attach fail
path that wasn't releasing resources.
Submitted by: Nicholas O'Brien <nickisobrien_gmail.com>
Sponsored by: Axiado
Differential Revision: https://reviews.freebsd.org/D24004
Notes
Notes:
svn path=/head/; revision=358801
Diffstat (limited to 'sys/riscv')
-rw-r--r-- | sys/riscv/sifive/fu540_spi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/riscv/sifive/fu540_spi.c b/sys/riscv/sifive/fu540_spi.c index 4c13a483b5df..7cd132b9cda4 100644 --- a/sys/riscv/sifive/fu540_spi.c +++ b/sys/riscv/sifive/fu540_spi.c @@ -348,10 +348,8 @@ fuspi_attach(device_t dev) return (0); -fail1: - bus_release_resources(dev, fuspi_spec, &sc->res); - fail: + bus_release_resources(dev, fuspi_spec, &sc->res); mtx_destroy(&sc->mtx); return (error); } |