From: Javi Merino Date: Thu, 15 Jan 2015 16:17:45 +0000 (+0000) Subject: sysfs: fix warning when creating a sysfs group without attributes X-Git-Tag: fixes-v4.0-rc1~100^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adf305f77878880fa5868a7179979da93be68d83;p=pandora-kernel.git sysfs: fix warning when creating a sysfs group without attributes When attempting to create a gropu without attrs, the warning prints the name of the group. However, the check for name being a NULL pointer is wrong: it uses the pointer to the name when it's NULL. Fix it to use the name if present, otherwise just put an empty string. Cc: Bruno Prémont Cc: Greg Kroah-Hartman Signed-off-by: Javi Merino Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed