output/sndio: remove unnecessary initialization

This commit is contained in:
Max Kellermann 2016-06-22 11:01:37 +02:00
parent 8aa61e230c
commit 1207fd1f16

View File

@ -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;
}