From: "Lakshmipathi.G" <Lakshmipathi.G@giis.co.in>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH]btrfs-progs: btrfs-debugfs: cleanup unused variables reported by pylint
Date: Mon, 10 Oct 2016 14:04:55 +0200 [thread overview]
Message-ID: <20161010120455.GA32406@fedori> (raw)
Signed-off-by: Lakshmipathi.G <Lakshmipathi.G@giis.co.in>
---
btrfs-debugfs | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/btrfs-debugfs b/btrfs-debugfs
index 0a654a6..dfb8853 100755
--- a/btrfs-debugfs
+++ b/btrfs-debugfs
@@ -4,7 +4,7 @@
# LGPLv2 license
# Copyright Facebook 2014
-import sys,os,struct,fcntl,ctypes,stat,argparse
+import sys, os, fcntl, ctypes, stat, argparse
# helpers for max ints
maxu64 = (1L << 64) - 1
@@ -233,7 +233,6 @@ def print_file_extents(filename):
s.args.min_objectid = st.st_ino
s.args.max_objectid = st.st_ino
- size = st.st_size
while True:
try:
@@ -314,7 +313,7 @@ def print_block_groups(mountpoint):
try:
fd = os.open(mountpoint, os.O_RDONLY)
- st = os.fstat(fd)
+ os.fstat(fd)
except Exception, e:
sys.stderr.write("Failed to open %s (%s)\n" % (mountpoint, e))
return -1
@@ -336,7 +335,7 @@ def print_block_groups(mountpoint):
h = ctypes.addressof(header)
p_left = args_buffer_size
- for x in xrange(0, s.args.nr_items):
+ for _ in xrange(0, s.args.nr_items):
# for each itme, copy the header from the buffer into
# our header struct
ctypes.memmove(h, p, header_size)
--
1.9.3
next reply other threads:[~2016-10-10 12:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-10 12:04 Lakshmipathi.G [this message]
2016-10-10 15:04 ` [PATCH]btrfs-progs: btrfs-debugfs: cleanup unused variables reported by pylint David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161010120455.GA32406@fedori \
--to=lakshmipathi.g@giis.co.in \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox