Skip to content

Commit 5e40508

Browse files
mitaLinus Torvalds
authored andcommitted
[PATCH] tlclk: delete unnecessary sysfs_remove_group
It is unnecessary and invalid to call sysfs_remove_group() after sysfs_create_group() failure. Cc: Sebastien Bouchard <sebastien.bouchard@ca.kontron.com> Cc: Mark Gross <mark.gross@intel.com> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 449d4dd commit 5e40508

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/char/tlclk.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,6 @@ static int __init tlclk_init(void)
807807
&tlclk_attribute_group);
808808
if (ret) {
809809
printk(KERN_ERR "tlclk: failed to create sysfs device attributes.\n");
810-
sysfs_remove_group(&tlclk_device->dev.kobj,
811-
&tlclk_attribute_group);
812810
goto out5;
813811
}
814812

0 commit comments

Comments
 (0)