mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
test/inhfd: remove redundant mnt_id initialization
Remove C-style pre-initialization of mnt_id to -1. The variable is always assigned inside the loop, and the for/else construct raises an exception if it is never set. Assisted-by: Claude Code (claude-opus-4-6) Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
d85af7219a
commit
1e2f7b55aa
1 changed files with 0 additions and 1 deletions
|
|
@ -15,7 +15,6 @@ def create_fds():
|
|||
os.system("umount -l %s" % tdir)
|
||||
os.rmdir(tdir)
|
||||
|
||||
mnt_id = -1
|
||||
with open("/proc/self/fdinfo/%d" % fd1.fileno()) as f:
|
||||
for line in f:
|
||||
line = line.split()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue