diff options
author | Max Kellermann <max@duempel.org> | 2008-03-26 10:37:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-03-26 10:37:36 +0000 |
commit | c5b524e3762723a200156b79efd58192db320e5b (patch) | |
tree | 9dac5dabb515cfab1b68afc88739bc3937b3f26d /src/audioOutputs/audioOutput_oss.c | |
parent | 54b544c2f4c0b5425d6ff12596a9e82fd8d783d2 (diff) | |
download | mpd-c5b524e3762723a200156b79efd58192db320e5b.tar.gz mpd-c5b524e3762723a200156b79efd58192db320e5b.tar.xz mpd-c5b524e3762723a200156b79efd58192db320e5b.zip |
eliminated duplicate initialization
Local variables which are never read before the first assignment don't
need initialization. Saves a few bytes of text. Also don't reset
variables which are never read until function return.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7199 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/audioOutputs/audioOutput_oss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audioOutputs/audioOutput_oss.c b/src/audioOutputs/audioOutput_oss.c index 1051869f5..093b1a2ca 100644 --- a/src/audioOutputs/audioOutput_oss.c +++ b/src/audioOutputs/audioOutput_oss.c @@ -168,7 +168,7 @@ static void addUnsupportedParam(OssData * od, int param, int val) static void removeSupportedParam(OssData * od, int param, int val) { - int i = 0; + int i; int j = 0; int idx = getIndexForParam(param); @@ -185,7 +185,7 @@ static void removeSupportedParam(OssData * od, int param, int val) static void removeUnsupportedParam(OssData * od, int param, int val) { - int i = 0; + int i; int j = 0; int idx = getIndexForParam(param); @@ -481,7 +481,7 @@ fail: static int oss_openDevice(AudioOutput * audioOutput) { - int ret = -1; + int ret; OssData *od = audioOutput->data; AudioFormat *audioFormat = &audioOutput->outAudioFormat; |