summaryrefslogtreecommitdiffstats
path: root/cryptfs_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'cryptfs_hw.c')
-rwxr-xr-xcryptfs_hw.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cryptfs_hw.c b/cryptfs_hw.c
index 3045bd0..109d406 100755
--- a/cryptfs_hw.c
+++ b/cryptfs_hw.c
@@ -221,12 +221,9 @@ int is_ice_enabled(void)
return storage_type;
}
-int wipe_hw_device_encryption_key(const char* enc_mode)
+int clear_hw_device_encryption_key()
{
- if (!enc_mode)
- return -1;
-
- if (is_hw_disk_encryption(enc_mode) && load_qseecom_library())
+ if (load_qseecom_library())
return qseecom_wipe_key(map_usage(QSEECOM_DISK_ENCRYPTION));
return 0;