feature = list_entry(p, struct omnibook_feature, list);
if (feature->suspend) {
retval = feature->suspend(feature->io_op);
- if (!retval)
+ if (retval)
printk(O_ERR "Unable to suspend the %s feature (error %i).\n", feature->name, retval);
}
}
feature = list_entry(p, struct omnibook_feature, list);
if (feature->resume) {
retval = feature->resume(feature->io_op);
- if (!retval)
+ if (retval)
printk(O_ERR "Unable to resume the %s feature (error %i).\n", feature->name, retval);
}
}