partition_parser: Fixed return type error

Change partition_get_index() return type to int as on error
-1 is returned

Change-Id: Icb061a231e531d80091ca2dc1ba1e42f427bf7da
2 files changed