Remove unusable variable wait

Maybe the variable "wait" is not usable.
Please review.

Signed-off-by: Ketor Meng <d.ketor@gmail.com>