fastchg.c: Fix duplicated code