Remove unusable variable wait

Signed-off-by: Ketor Meng <d.ketor@gmail.com>