summaryrefslogtreecommitdiff
path: root/cmd_run.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_run.c')
-rw-r--r--cmd_run.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd_run.c b/cmd_run.c
index 74f32480..6fb1c4f9 100644
--- a/cmd_run.c
+++ b/cmd_run.c
@@ -25,9 +25,6 @@ int cmd_stop(int argc, char *argv[])
die("Please supply a filesystem");
struct bcache_handle fs = bcache_fs_open(argv[1]);
-
- if (ioctl(fs.ioctl_fd, BCH_IOCTL_STOP))
- die("BCH_IOCTL_STOP error: %s", strerror(errno));
-
+ xioctl(fs.ioctl_fd, BCH_IOCTL_STOP);
return 0;
}