lttng lib: ring buffer remove duplicate null pointer
[lttng-modules.git] / 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.023515 seconds and 4 git commands to generate.