*
* Connection Manager
*
- * Copyright (C) 2007-2010 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2012 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
DBG("driver %p name %s", driver, driver->name);
- if (driver->get_hostname == NULL)
+ if (!driver->get_hostname)
continue;
hostname = driver->get_hostname();
- if (hostname != NULL)
+ if (hostname)
return hostname;
}
DBG("driver %p name %s", driver, driver->name);
- if (driver->set_hostname == NULL)
+ if (!driver->set_hostname)
continue;
if (driver->set_hostname(hostname) == 0)
DBG("driver %p name %s", driver, driver->name);
- if (driver->set_domainname == NULL)
+ if (!driver->set_domainname)
continue;
if (driver->set_domainname(domainname) == 0)