This call probably fits in one line, saving a bit of precious vertical space.
if (!initialize_device(device_def, result_device, ip_address, port)) {
...
}