sysfs: remove BUG_ON() from sysfs_remove_group()
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 7 Feb 2008 16:58:54 +0000 (11:58 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 7 Feb 2008 19:31:46 +0000 (11:31 -0800)
commit969affd276dec81a35a5ad10d4e05e62e93b380b
treea6a6bb9f2b658838f09ad28d58211252a5e7db6f
parent7d640c4a5b36c4733460065db1554da924044511
sysfs: remove BUG_ON() from sysfs_remove_group()

It's possible that the caller of sysfs_remove_group messed up and passed in an attribute group that was not really registered to this kobject.  But don't panic for such a foolish error, spit out a warning about what happened, and continue on our way safely.

Cc: Roland Dreier <rdreier@cisco.com>
Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/group.c