usemem: do not pass opt_bytes to do_units

The param bytes in function do_units serves two purpose:
1 As the passed param to tell the function how many bytes need to be processed;
2 As a local variable that gets decremented each time a unit is processed
  and break the loop once it gets zero.

Since do_units is always called with the global opt_bytes as its param,
the 1st purpose isn't much useful as we can always get the value from
the global opt_bytes. For purpose 2, we probably should be using a local
variable instead.

There should be no functionality change.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
1 file changed