Further down in this function, we check ringbufferAddr != 0, which would seem to indicate that it's ok for ringbufferAddr to be 0, assuming the code below is right. Let's not add contradictions to the code - just remove the ringbufferAddr check here.