Remove duplicated code

Corresponding to flashrom svn r14 and coreboot v2 svn r1456.
8 files changed