From: Akinobu Mita Date: Fri, 22 Dec 2006 09:10:28 +0000 (-0800) Subject: [PATCH] tlclk: delete unnecessary sysfs_remove_group X-Git-Tag: firefly_0821_release~31767 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5e40508e5fee2dac7b04d5bc5b5ef3b452f0a899;p=firefly-linux-kernel-4.4.55.git [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 Cc: Mark Gross Signed-off-by: Akinobu Mita Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/tlclk.c b/drivers/char/tlclk.c index 244d30a03fef..448d5083c381 100644 --- a/drivers/char/tlclk.c +++ b/drivers/char/tlclk.c @@ -807,8 +807,6 @@ static int __init tlclk_init(void) &tlclk_attribute_group); if (ret) { printk(KERN_ERR "tlclk: failed to create sysfs device attributes.\n"); - sysfs_remove_group(&tlclk_device->dev.kobj, - &tlclk_attribute_group); goto out5; }