builddevice: removed unused auto variable