Checking whether a pointer is NULL after it has been dereferenced is not useful. This was detected by Coverity. Signed-off-by: Bart Van Assche <bvanassche@acm.org>