To fix coding error which find by static analysis. Change-Id: I46017721945aef60def49a8e90ffb2da1dfaf5e6 CRs-Fixed: 3642679