net/ring: remove unnecessary NULL check