Fix coverity defects: Unused pointer value (UNUSED_VALUE)