diff options
| author | Christos Margiolis <christos@FreeBSD.org> | 2026-07-27 14:31:10 +0000 |
|---|---|---|
| committer | Christos Margiolis <christos@FreeBSD.org> | 2026-07-27 14:31:30 +0000 |
| commit | a46c92aad16bf6c9d6c3967c8af3e8b3bdb59cda (patch) | |
| tree | c561407cfb79e7e24105262b07496c570f6c7936 | |
| parent | 6901cbbd5a2c00d378a7f87426b36d6ee6ce0aa2 (diff) | |
sound: Propagate error value from dsp_make_dev()
It is better to propagate it to pcm_register(), and later to the device
drivers, than to simply ignore it and return ENXIO.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
| -rw-r--r-- | sys/dev/sound/pcm/dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c index 33b0e4419bd8..8cc0884647a3 100644 --- a/sys/dev/sound/pcm/dsp.c +++ b/sys/dev/sound/pcm/dsp.c @@ -148,7 +148,7 @@ dsp_make_dev(device_t dev) if (err != 0) { device_printf(dev, "failed to create dsp%d: error %d", unit, err); - return (ENXIO); + return (err); } return (0); |
