chg: avoid redundant if statement in minpoly_generic.cc