summaryrefslogtreecommitdiffstats
path: root/libmount/python
diff options
context:
space:
mode:
authorKarel Zak2013-08-20 17:52:47 +0200
committerKarel Zak2013-08-20 17:52:47 +0200
commit73d5b4ebdb0658eb736bac12a4b6e60f56aae5db (patch)
treedb895da71f41c292a1f303a3e3e7754d221ed9d3 /libmount/python
parentlibmount: add mnt_table_is_empty(), improve table list usage (diff)
downloadkernel-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.c1
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