From ad17d5608462e248c63f7be7b47bdbeaf971e52f Mon Sep 17 00:00:00 2001 From: Rakesh Pandit Date: Sat, 19 Apr 2014 22:05:41 +0300 Subject: 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 Signed-off-by: David Sterba --- btrfs-map-logical.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'btrfs-map-logical.c') diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index a907e4d4..e47a1ae1 100644 --- a/btrfs-map-logical.c +++ b/btrfs-map-logical.c @@ -153,8 +153,6 @@ int main(int ac, char **av) print_usage(); if (logical == 0) print_usage(); - if (copy < 0) - print_usage(); dev = av[optind]; -- cgit v1.2.3