sysfs: kill unnecessary NULL pointer check in sysfs_release()
authorTejun Heo <htejun@gmail.com>
Thu, 20 Sep 2007 07:05:10 +0000 (16:05 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:51:10 +0000 (14:51 -0700)
commit50ab1a72863b1ad4b117862bc52610f8d4535609
tree41a30dce0ef44917f16d2bc5cdf23cc26f4fac3a
parentb05f0548dabd20433f8c201a0307103721d6a18b
sysfs: kill unnecessary NULL pointer check in sysfs_release()

In sysfs_release(), sysfs_buffer pointed to by filp->private_data is
guaranteed to exist.  Kill the unnecessary NULL check.  This also
makes the code more consistent with the counterpart in fs/sysfs/bin.c.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/file.c