[mr2712] Optimize resistance calculation
speed up: remove empty loops