From e3528bcda7dad01f5331b7a8e16f4dabe886ede4 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 24 Apr 2002 08:37:34 +0000 Subject: [PATCH] o Stop printing errors if flushing fails (could be an unconfigured device). --- lib/device/dev-io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index 30447d3d6..79b8a128d 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -98,8 +98,7 @@ int dev_open(struct device *dev, int flags) static void _flush(int fd) { - if (ioctl(fd, BLKFLSBUF, 0)) - log_error("couldn't flush device."); + ioctl(fd, BLKFLSBUF, 0); } int dev_close(struct device *dev)