[flashrom-gerrit] Change in flashrom[master]: pcidev.c: Simplify by consolidating common logic