diff options
author | Max Kellermann <max@duempel.org> | 2016-06-22 11:01:37 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-06-22 11:01:37 +0200 |
commit | 1207fd1f16ca880d56fb37f0b9116b903c5e423e (patch) | |
tree | fd5ca9d788bb21c92d599eabc48c0608add08bd8 /src/output/plugins | |
parent | 8aa61e230c49451cfb9d53505b0b1397d38412a1 (diff) |
output/sndio: remove unnecessary initialization
Diffstat (limited to 'src/output/plugins')
-rw-r--r-- | src/output/plugins/SndioOutputPlugin.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/output/plugins/SndioOutputPlugin.cxx b/src/output/plugins/SndioOutputPlugin.cxx index d3cfedcd6..b3f9f72d4 100644 --- a/src/output/plugins/SndioOutputPlugin.cxx +++ b/src/output/plugins/SndioOutputPlugin.cxx @@ -46,8 +46,7 @@ class SndioOutput { public: SndioOutput() - :base(sndio_output_plugin), - device(nullptr), sio_hdl(nullptr) {} + :base(sndio_output_plugin) {} ~SndioOutput() {} bool Configure(const ConfigBlock &block, Error &error); @@ -165,15 +164,13 @@ SndioOutput::Open(AudioFormat &audio_format, gcc_unused Error &error) return true; err: sio_close(sio_hdl); - sio_hdl = nullptr; return false; } void SndioOutput::Close() { - if (sio_hdl) - sio_close(sio_hdl); + sio_close(sio_hdl); delete timer; } |