Cleanup: remove duplicate check for 0 num_subbuf and subbuf_size
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Mar 2012 15:58:04 +0000 (10:58 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Mar 2012 15:58:04 +0000 (10:58 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/ring_buffer_backend.c

index e949a5e292d2048f306760f329f64d668a0c30cd..4bc4b767f0679d5fee431fc6143df567cd6a0c9c 100644 (file)
@@ -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;
This page took 0.02485 seconds and 4 git commands to generate.