On 9/13/07, Michael Ellerman [EMAIL PROTECTED] wrote:
It would be nice to be able to do:
for_each_thing(thing) {
error = sysfs_create_group(thing-kobj, attrs);
if (error) {
for_each_thing(thing)
sysfs_remove_group(thing-kobj, attrs);
It would be nice to be able to do:
for_each_thing(thing) {
error = sysfs_create_group(thing-kobj, attrs);
if (error) {
for_each_thing(thing)
sysfs_remove_group(thing-kobj, attrs);
return error;
}
}
But there's a
It would be nice to be able to do:
for_each_thing(thing) {
error = sysfs_create_group(thing-kobj, attrs);
if (error) {
for_each_thing(thing)
sysfs_remove_group(thing-kobj, attrs);
return error;
}
}
But there's a