Remove redundant NULL check for ugd in __motion_shake_cb()