summaryrefslogtreecommitdiffstats
path: root/libblkid/src/save.c
diff options
context:
space:
mode:
authorDan Pasanen <dan.pasanen@gmail.com>2015-11-11 18:26:25 +0100
committerDees Troy <dees_troy@teamw.in>2015-11-26 05:47:26 +0100
commit7ac17ccee61fb464b43c0f595b73b79d08d9ced8 (patch)
treeef5c2d5bb92a4a62d5a08fc0e1ba3371cfa90260 /libblkid/src/save.c
parentfuse_sideload: remove unused variables causing warnings (diff)
downloadandroid_bootable_recovery-7ac17ccee61fb464b43c0f595b73b79d08d9ced8.tar
android_bootable_recovery-7ac17ccee61fb464b43c0f595b73b79d08d9ced8.tar.gz
android_bootable_recovery-7ac17ccee61fb464b43c0f595b73b79d08d9ced8.tar.bz2
android_bootable_recovery-7ac17ccee61fb464b43c0f595b73b79d08d9ced8.tar.lz
android_bootable_recovery-7ac17ccee61fb464b43c0f595b73b79d08d9ced8.tar.xz
android_bootable_recovery-7ac17ccee61fb464b43c0f595b73b79d08d9ced8.tar.zst
android_bootable_recovery-7ac17ccee61fb464b43c0f595b73b79d08d9ced8.zip
Diffstat (limited to 'libblkid/src/save.c')
-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"));