summaryrefslogtreecommitdiffstats
path: root/libblkid/src/save.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libblkid/src/save.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libblkid/src/save.c b/libblkid/src/save.c
index c2a975348..bdc9c5980 100644
--- a/libblkid/src/save.c
+++ b/libblkid/src/save.c
@@ -85,9 +85,6 @@ int blkid_flush_cache(blkid_cache cache)
int fd, ret = 0;
struct stat st;
- if (!cache)
- return -BLKID_ERR_PARAM;
-
if (list_empty(&cache->bic_devs) ||
!(cache->bic_flags & BLKID_BIC_FL_CHANGED)) {
DBG(SAVE, ul_debug("skipping cache file write"));