lkml.org 
[lkml]   [2009]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] Fix updating of named attribute groups
    Matthew Wilcox wrote:
    > + if (update) {
    > + sd = sysfs_get_dirent(kobj->sd, grp->name);
    > + if (!sd)
    > + return -ENOENT;
    > + } else {
    > + error = sysfs_create_subdir(kobj, grp->name, &sd);
    > + if (error)
    > + return error;
    > + sysfs_get(sd);
    > + }
    > + } else {
    > + sd = sysfs_get(kobj->sd);
    > + }

    nitpick: the last braces aren't necessary.

    --
    tejun


    \
     
     \ /
      Last update: 2009-10-29 17:01    [W:0.018 / U:91.304 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site