get_devname: fix a couple warnings

Change-Id: I0dd2b109cbe015f30905169a573368716c2a73c5
1 file changed