[PATCH 6.6 050/132] platform/mellanox: mlxreg-lc: Fix logic error in power state check