summaryrefslogtreecommitdiff
path: root/btrfs-find-root.c
diff options
context:
space:
mode:
authorRakesh Pandit <rakesh@tuxera.com>2014-04-19 22:05:41 +0300
committerDavid Sterba <dsterba@suse.cz>2014-05-02 17:03:45 +0200
commitad17d5608462e248c63f7be7b47bdbeaf971e52f (patch)
treed50fb61b35788298e6b4fa3969cb83939827f29a /btrfs-find-root.c
parent6ca8f9cfc28364cf7378b54df41008bc52478f2e (diff)
downloadbtrfs-progs-ad17d5608462e248c63f7be7b47bdbeaf971e52f.tar.gz
Btrfs-progs: make smatch checker happy (trivial fixes)
It complains errno never gets assigned to zero in find-root and since errno anyway is zero at program started up, lets remove it. Check "copy is less then zero" isn't possible because strtoull used by arg_strtou64 wouldn't return -ve number. Trivial space fixes. Signed-off-by: Rakesh Pandit <rakesh@tuxera.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'btrfs-find-root.c')
-rw-r--r--btrfs-find-root.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/btrfs-find-root.c b/btrfs-find-root.c
index db01923..25d79f1 100644
--- a/btrfs-find-root.c
+++ b/btrfs-find-root.c
@@ -287,7 +287,6 @@ int main(int argc, char **argv)
while ((opt = getopt(argc, argv, "l:o:g:")) != -1) {
switch(opt) {
- errno = 0;
case 'o':
search_objectid = arg_strtou64(optarg);
break;