coverity#1251174 untrusted pointer read

Change-Id: I894fc64d6ae6881347bd1379d2934654536a01cf
use already existing variable

Change-Id: I3f2781e2a041845e732046ea591a15c9bb21f1a5