From: Mathieu Desnoyers Date: Thu, 8 Mar 2012 15:58:04 +0000 (-0500) Subject: Cleanup: remove duplicate check for 0 num_subbuf and subbuf_size X-Git-Tag: v2.0.0-rc3~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b124e2ec1b9064cdfb82dfa14a5d67ff2e7146c6;p=lttng-ust.git Cleanup: remove duplicate check for 0 num_subbuf and subbuf_size Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/ring_buffer_backend.c b/libringbuffer/ring_buffer_backend.c index e949a5e2..4bc4b767 100644 --- a/libringbuffer/ring_buffer_backend.c +++ b/libringbuffer/ring_buffer_backend.c @@ -210,9 +210,6 @@ int channel_backend_init(struct channel_backend *chanb, if (!name) return -EPERM; - if (!(subbuf_size && num_subbuf)) - return -EPERM; - /* Check that the subbuffer size is larger than a page. */ if (subbuf_size < PAGE_SIZE) return -EINVAL;