From: Alan Stern Date: Mon, 15 Nov 2010 20:46:07 +0000 (-0500) Subject: sysfs: remove useless test from sysfs_merge_group X-Git-Tag: v2.6.38-rc1~422^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e030d58e8860f1c87b17631dbdd70747cbe1fb5b;p=pandora-kernel.git sysfs: remove useless test from sysfs_merge_group Dan Carpenter pointed out that the new sysfs_merge_group() and sysfs_unmerge_group() routines requires their grp argument to be non-NULL, because they dereference grp to obtain the list of attributes. Hence it's pointless for the routines to include a test and special-case handling for when grp is NULL. This patch (as1433) removes the unneeded tests. Signed-off-by: Alan Stern CC: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed