+ bitnum -= bitregion_start; + bitregion_end -= bitregion_start; + bitregion_start = 0;Why is this necessary/useful?
You mean, why am I resetting these values (because the call to get_best_mode() following it needs the adjusted values). Or why am I adjusting the address to point to the beginning of the region?
A