lttng lib: ring buffer remove duplicate null pointer
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 9 Dec 2011 14:26:06 +0000 (09:26 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 9 Dec 2011 14:26:06 +0000 (09:26 -0500)
This check is performed at mapping setup time in
lib_ring_buffer_mmap_buf() already, so we can safely remove this
duplicata.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/ring_buffer_mmap.c

index 68221ee9a87030563ed212ac3b32afde26572f92..cf374348d907334f81e3f2d9b67ef8bce44789d2 100644 (file)
@@ -30,9 +30,6 @@ static int lib_ring_buffer_fault(struct vm_area_struct *vma, struct vm_fault *vm
        void **virt;
        unsigned long offset, sb_bindex;
 
-       if (!buf)
-               return VM_FAULT_OOM;
-
        /*
         * Verify that faults are only done on the range of pages owned by the
         * reader.
This page took 0.026337 seconds and 4 git commands to generate.