ethdev: add return code to device info get function