device_inject: wrong var name & drop useless assignment