Remove the useless assert() since it is guaranteed by the loop condition

Signed-off-by: Huang Le <4tarhl@gmail.com>