diff options
author | poljar (Damir Jelić) <poljarinho@gmail.com> | 2013-06-18 22:17:48 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2013-06-24 16:56:24 +0300 |
commit | 97da92d894c2a29bc3ccf60dc904e4099b30f47e (patch) | |
tree | f266b42234834b34a767618a3e917d5724d0ecad /src/modules/xen/module-xenpv-sink.c | |
parent | e95d054e40f65bdf84bf80d289d6cbcdc3b076d5 (diff) | |
download | pulseaudio-97da92d894c2a29bc3ccf60dc904e4099b30f47e.tar.gz |
Whitespace cleanup: Remove all multiple newlines
This patch removes all occurrences of double and triple
newlines.
Command used for this:
find . -type d \( -name ffmpeg \) -prune -o \
-regex '\(.*\.[hc]\|.*\.cc\)' \
-a -not -name 'adrian-aec.*' -a -not \
-name reserve.c -a -not -name 'rtkit.*' \
-exec sed -i -e '/^$/{N;s/^\n$//}' {} \;
Two passes were needed to remove triple newlines.
The excluded files are mirrored files from external sources.
Diffstat (limited to 'src/modules/xen/module-xenpv-sink.c')
-rw-r--r-- | src/modules/xen/module-xenpv-sink.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/modules/xen/module-xenpv-sink.c b/src/modules/xen/module-xenpv-sink.c index 66630176d..2d4879f97 100644 --- a/src/modules/xen/module-xenpv-sink.c +++ b/src/modules/xen/module-xenpv-sink.c @@ -278,11 +278,9 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse static int process_render(struct userdata *u) { pa_assert(u); - if (u->memchunk.length <= 0) pa_sink_render(u->sink, ioring->usable_buffer_space, &u->memchunk); - pa_assert(u->memchunk.length > 0); xc_evtchn_notify(xce, xen_evtchn_port); @@ -583,7 +581,6 @@ void pa__done(pa_module*m) { } - static int alloc_gref(struct ioctl_gntalloc_alloc_gref *gref_, void **addr) { int alloc_fd, dev_fd, rv; @@ -701,7 +698,6 @@ static char* read_param(const char *paramname) { return xs_read(xsh, 0, keybuf, &len); } - static int publish_spec(pa_sample_spec *sample_spec) { /* Publish spec and set state to XenbusStateInitWait*/ int ret; @@ -713,7 +709,6 @@ static int publish_spec(pa_sample_spec *sample_spec) { return ret; } - static int read_backend_default_spec(pa_sample_spec *sample_spec) { /* Read spec from backend */ char *out; |