msm: timer: prevent potential NULL pointer dereference

Reorganize the code that checks return of irq_get_chip to prevent potential
NULL pointer dereference

CRs-fixed: 313698
Change-Id: Ibb4804feb5cf2f53d7b42dba4f2cf571183d9634
Signed-off-by: Jin Hong <jinh@codeaurora.org>
1 file changed