Use local variables to hold struct members before using them, which helps us avoid confusions from static checkers. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Dong Eddie <eddie.dong@intel.com>