projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67dc1a5
)
core: Remove dead code in pa_mainloop_run()
author
Peter Meerwald
<p.meerwald@bct-electronic.com>
Wed, 18 Dec 2013 16:20:03 +0000
(17:20 +0100)
committer
Peter Meerwald
<p.meerwald@bct-electronic.com>
Fri, 20 Dec 2013 11:55:17 +0000
(12:55 +0100)
while ((r = pa_mainloop_iterate(m, 1, retval)) >= 0)
;
if (r == -2)
return 1;
else if (r < 0)
return -1;
else
return 0;
the last else is never reached, discovered by coverity
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
src/pulse/mainloop.c
patch
|
blob
|
history
diff --git
a/src/pulse/mainloop.c
b/src/pulse/mainloop.c
index 0e1fba0476ac5c8ed8146a90594adc46372f47ec..66a147566653553676a53efeaac97179ded4aafb 100644
(file)
--- a/
src/pulse/mainloop.c
+++ b/
src/pulse/mainloop.c
@@
-953,10
+953,8
@@
int pa_mainloop_run(pa_mainloop *m, int *retval) {
if (r == -2)
return 1;
- else if (r < 0)
- return -1;
else
- return
0
;
+ return
-1
;
}
void pa_mainloop_quit(pa_mainloop *m, int retval) {