The "bool" type is a relative newcomer to the Linux kernel, and it is
still frowned up by some developers, so instead of adding a definition
to our compatibility headers (which is what we usually do), this commit
changes "bool" to "int".
.dumpit = NULL
};
-bool dp_exists(const char *dp_name)
+int dp_exists(const char *dp_name)
{
struct net_device *dev;
- bool retval;
+ int retval;
dev = dev_get_by_name(&init_net, dp_name);
if (!dev)
- return false;
+ return 0;
retval = is_dp_dev(dev);
dev_put(dev);
* reconfigure itself. We need to make sure the changes actually
* worked. */
for (i = 0; i < 50; i++) {
- bool exists = dp_exists(dp_name);
+ int exists = dp_exists(dp_name);
if ((add && exists) || (!add && !exists))
return 0;