P9-XIP: simplify p9_xip_get_element()
P9-XIP: simplify p9_xip_get_element()

Removing code duplication

Change-Id: I8afb0a03f3b4a3bd8590419b0c1e9ff8e051fe5a
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29764
Tested-by: Jenkins Server <8e3f934e4c44875bc48d33da3ea13d93ba9a233f@us.ibm.com>
Tested-by: PPE CI <dc75934ba5befb9221434e67a247b93aec46b36b@us.ibm.com>
Tested-by: Hostboot CI <52521565bd8ea18a2b112942dce4f4220a97c2c8@us.ibm.com>
Reviewed-by: Richard J. Knight <94c04f3910596886be97211d492ad29f0ba29cd5@us.ibm.com>
Reviewed-by: Sachin Gupta <285b19a698aa558fba6ab25cf25b393d072fd749@in.ibm.com>
Reviewed-by: Martin Peschke <4c516a35580133f593dfe866810ac6bfbd5b0dba@de.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29772
Reviewed-by: Hostboot Team <6963c9c00f6fe376c46a8e103faee5c9a2f9eaf2@us.ibm.com>
Reviewed-by: Daniel M. Crowell <912029ca9254ac7b5854e56910561d682e1fa2d0@us.ibm.com>

Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot