hal/dev_io/dev_io.c: fix dev_id unused parameter

The parameter was only used when the command-line option
was set to null.