device_info: only return error when we really have one

Signed-off-by: Simon Busch <morphis@gravedo.de>