msm_shared: Fix the logic of gpt partition parser

The existing logic in the gpt partition parser assumes the max
number of partitions to be multiple of 4 & does not take into
account partition count which is not a multiple of 4. Fix the
logic to recognize all the partitions.

Change-Id: Ic97362e21c3ae3d8fc3a7805a670b632b1c27de0
CRs-Fixed: 447733
1 file changed