zram: simplify and optimize dev_to_zram()