diff options
author | Karel Zak | 2013-08-20 17:52:47 +0200 |
---|---|---|
committer | Karel Zak | 2013-08-20 17:52:47 +0200 |
commit | 73d5b4ebdb0658eb736bac12a4b6e60f56aae5db (patch) | |
tree | db895da71f41c292a1f303a3e3e7754d221ed9d3 /libmount/python | |
parent | libmount: add mnt_table_is_empty(), improve table list usage (diff) | |
download | kernel-qcow2-util-linux-73d5b4ebdb0658eb736bac12a4b6e60f56aae5db.tar.gz kernel-qcow2-util-linux-73d5b4ebdb0658eb736bac12a4b6e60f56aae5db.tar.xz kernel-qcow2-util-linux-73d5b4ebdb0658eb736bac12a4b6e60f56aae5db.zip |
pylibmount: remove unnecessary code
It's enough to call mnt_free_fs() to remove fs from the table.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/python')
-rw-r--r-- | libmount/python/tab.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libmount/python/tab.c b/libmount/python/tab.c index da7109263..46108c1b4 100644 --- a/libmount/python/tab.c +++ b/libmount/python/tab.c @@ -548,7 +548,6 @@ void pymnt_free_table(struct libmnt_table *tab) while (mnt_table_first_fs(tab, &fs) == 0) { PyObject *obj = mnt_fs_get_userdata(fs); - mnt_table_remove_fs(tab, fs); if (obj) Py_DECREF(obj); /* (possible) destruction via object destructor */ else |