From 6690ceed64841dc72aa3f904e9c437f36730b5bc Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 18 Dec 2016 18:32:40 +0000 Subject: [PATCH] fsfreeze: remove unnecessary functions Signed-off-by: Sami Kerola --- sys-utils/fsfreeze.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c index 727319a668..a25eaff209 100644 --- a/sys-utils/fsfreeze.c +++ b/sys-utils/fsfreeze.c @@ -33,16 +33,6 @@ enum fs_operation { UNFREEZE }; -static int freeze_f(int fd) -{ - return ioctl(fd, FIFREEZE, 0); -} - -static int unfreeze_f(int fd) -{ - return ioctl(fd, FITHAW, 0); -} - static void __attribute__((__noreturn__)) usage(FILE *out) { fprintf(out, USAGE_HEADER); @@ -138,13 +128,13 @@ int main(int argc, char **argv) switch (action) { case FREEZE: - if (freeze_f(fd)) { + if (ioctl(fd, FIFREEZE, 0)) { warn(_("%s: freeze failed"), path); goto done; } break; case UNFREEZE: - if (unfreeze_f(fd)) { + if (ioctl(fd, FITHAW, 0)) { warn(_("%s: unfreeze failed"), path); goto done; } -- 2.47.2