]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
python: remove unused var in Cgroup::add_controller()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 10 Jul 2023 04:44:39 +0000 (10:14 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 12 Jul 2023 18:57:31 +0000 (12:57 -0600)
In Cgroup::add_controller(), remove unused variable 'cgp', reported
cython-lint tool.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/python/libcgroup.pyx

index 0e1c6885b7bd0ea9177e0c3a1ac8d996e98f738b..9d260032e96941b7933336eeb923c36ccbb7b8f7 100644 (file)
@@ -161,7 +161,6 @@ cdef class Cgroup:
         Does not modify the cgroup sysfs
         """
         cdef cgroup.cgroup_controller * cgcp
-        cdef cgroup.cgroup * cgp
 
         cgcp = cgroup.cgroup_add_controller(self._cgp,
                                             c_str(ctrl_name))