examples: merge: remove useless while condition

Suggested by: shaitan@
examples: merge: check read/write calls in copy_data()

Reported by: shaitan@