mtd: nandsim: do not open code a do_div helper