hwdriver.c: Fix two scan-build warnings.