msm: rpm_log: add NULL check before dereference of pointer

Having a check whether pointer is NULL after de-reference is
wrong and modifying the code to check before referencing it.

CRs-Fixed: 566914
Change-Id: I9a924ad03b0f32efc1d63defb0450698de21a61a
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
msm: tsens8960: Fix NULL pointer dereference

Fix the dereferencing of pointer problem by
checking NULL before use.

CRs-Fixed: 566924
Change-Id: Id5cb119b0293de808d691ac710fc4071ac7719dc
Signed-off-by: Dipen Parmar <dipenp@codeaurora.org>
Merge "msm: tsens8960: Fix NULL pointer dereference"
Merge " msm: rpm_log: add NULL check before dereference of pointer"