Small refactor for reset buffer

Test: in main repository

Change-Id: I4d95899b9f49bc0973c63371b19739b56844aebc
3 files changed