From ee24ab6f1e7d50e19d98ccb1850e8ec1364a7334 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Tue, 4 Aug 2015 22:46:26 +0100 Subject: misc: fix redundant assignment and reassignments before use [cppcheck] Signed-off-by: Sami Kerola --- sys-utils/fstrim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/fstrim.c') diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c index c91141e27..6bbf1c99f 100644 --- a/sys-utils/fstrim.c +++ b/sys-utils/fstrim.c @@ -60,7 +60,7 @@ struct fstrim_range { static int fstrim_filesystem(const char *path, struct fstrim_range *rangetpl, int verbose) { - int fd = -1, rc; + int fd, rc; struct stat sb; struct fstrim_range range; -- cgit v1.2.3-55-g7522