bhnd: Fix some -Wunused-but-set-variable warnings
(cherry picked from commit 1db163b82565302edebcfde9aee3a77586bccb1f)