diff options
author | Alasdair G Kergon <agk@redhat.com> | 2010-02-16 18:43:04 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2010-02-16 18:43:04 +0000 |
commit | 9307f6b19ac4f5887552b5b2992f391b866f7633 (patch) | |
tree | bad439cf03f6e2b7aecb4fa78d6098feea443dd5 /drivers | |
parent | 9eef87da2a8ea4920e0d913ff977cac064b68ee0 (diff) | |
download | kernel_samsung_smdk4412-9307f6b19ac4f5887552b5b2992f391b866f7633.zip kernel_samsung_smdk4412-9307f6b19ac4f5887552b5b2992f391b866f7633.tar.gz kernel_samsung_smdk4412-9307f6b19ac4f5887552b5b2992f391b866f7633.tar.bz2 |
dm: sysfs revert add empty release function to avoid debug warning
Revert commit d2bb7df8cac647b92f51fb84ae735771e7adbfa7 at Greg's request.
Author: Milan Broz <mbroz@redhat.com>
Date: Thu Dec 10 23:51:53 2009 +0000
dm: sysfs add empty release function to avoid debug warning
This patch just removes an unnecessary warning:
kobject: 'dm': does not have a release() function,
it is broken and must be fixed.
The kobject is embedded in mapped device struct, so
code does not need to release memory explicitly here.
Cc: Greg KH <gregkh@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-sysfs.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/md/dm-sysfs.c b/drivers/md/dm-sysfs.c index f53392d..f91b409 100644 --- a/drivers/md/dm-sysfs.c +++ b/drivers/md/dm-sysfs.c @@ -80,20 +80,12 @@ static struct sysfs_ops dm_sysfs_ops = { }; /* - * The sysfs structure is embedded in md struct, nothing to do here - */ -static void dm_sysfs_release(struct kobject *kobj) -{ -} - -/* * dm kobject is embedded in mapped_device structure * no need to define release function here */ static struct kobj_type dm_ktype = { .sysfs_ops = &dm_sysfs_ops, .default_attrs = dm_attrs, - .release = dm_sysfs_release }; /* |