ps8xxx: Simplify firmware version logic
This removes a test that we know is always true before fetching the
firmware version number from the chip.
BRANCH=none
TEST=buildall passes
@@ -585,8 +585,6 @@ static int ps8xxx_get_chip_info(int port, int live,
chip_info->product_id = product_id[port];
}
- if (chip_info->fw_version_number == 0 ||
- chip_info->fw_version_number == -1 || live) {
#ifdef CONFIG_USB_PD_TCPM_PS8805_FORCE_DID
if (chip_info->product_id == PS8805_PRODUCT_ID &&
chip_info->device_id == 0x0001) {
@@ -611,7 +609,6 @@ static int ps8xxx_get_chip_info(int port, int live,
return rv;
chip_info->fw_version_number = val;
- }
/* Treat unexpected values as error (FW not initiated from reset) */
if (live && (
