sysfs: checking for NULL instead of ERR_PTR
authorDan Carpenter <error27@gmail.com>
Wed, 25 Aug 2010 07:12:29 +0000 (09:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 4 Sep 2010 00:26:28 +0000 (17:26 -0700)
commit57f9bdac2510cd7fda58e4a111d250861eb1ebeb
treec343e3d07fbab1cf7714b9bedebda95807e86cd9
parent2bfc96a127bc1cc94d26bfaa40159966064f9c8c
sysfs: checking for NULL instead of ERR_PTR

d_path() returns an ERR_PTR and it doesn't return NULL.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: stable <stable@kernel.org>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/file.c