From: Maarten Bosmans Date: Sun, 27 Nov 2011 16:12:10 +0000 (+0000) Subject: shm: Use a goto rather than early return for consistency. X-Git-Tag: v1.99.1~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae179d7321761d24960972c94ec412ad1713cfd3;p=platform%2Fupstream%2Fpulseaudio.git shm: Use a goto rather than early return for consistency. This is functionally the same but is easier to understand. --- diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c index 06e32c4..fe34a51 100644 --- a/src/pulsecore/shm.c +++ b/src/pulsecore/shm.c @@ -176,7 +176,7 @@ int pa_shm_create_rw(pa_shm *m, size_t size, pa_bool_t shared, mode_t mode) { pa_assert_se(pa_close(fd) == 0); m->do_unlink = TRUE; #else - return -1; + goto fail; #endif }