No need to iterate the list to achieve what the function does. We can simply adjust pointers and count. Change-Id: I849817e53d859ac73c14131b54a6d05e4efeb37e