openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/sysfsutils/2.1.0-r5/sysfsutils-2.1.0/lib/sysfs_class.c
void sysfs_close_class(struct sysfs_class* cls)
{
    if (cls)
    {
        if (cls->devices)
            dlist_destroy(cls->devices);
        if (cls->attrlist)
            dlist_destroy(cls->attrlist);
        free(cls);
    }
}
/**
 * sysfs_close_class: close the given class
 * @cls: sysfs_class to close
 */
close the given class
@cls: sysfs_class to close
close the given class @cls : sysfs_class to close
void sysfs_close_class(struct sysfs_class* cls)
{
    if (cls)
    {
        if (cls->devices)
            dlist_destroy(cls->devices);
        if (cls->attrlist)
            dlist_destroy(cls->attrlist);
        free(cls);
    }
}
void sysfs_close_class ( struct sysfs_class * cls ) { if ( cls ) { if ( cls -> devices ) dlist_destroy ( cls -> devices ) ; if ( cls -> attrlist ) dlist_destroy ( cls -> attrlist ) ; free ( cls ) ; } }
sysfs_close_class: close the given class
 @cls: sysfs_class to close
sysfs_close_class : close the given class @cls : sysfs_class to close