diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2019-01-04 00:15:46 +0200 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-01-04 00:15:46 +0200 |
commit | 9ce3ae9f142d519c66f4efde9d6d5e6a7e10e18d (patch) | |
tree | 9ec28317e4e7f4e97c977b95e1a802ea54bbebf4 | |
parent | bb6dfecc050a8a4d3efa96162f01c7530ca68de8 (diff) | |
download | android_vendor_qcom_opensource_cryptfs_hw-9ce3ae9f142d519c66f4efde9d6d5e6a7e10e18d.tar.gz android_vendor_qcom_opensource_cryptfs_hw-9ce3ae9f142d519c66f4efde9d6d5e6a7e10e18d.tar.bz2 android_vendor_qcom_opensource_cryptfs_hw-9ce3ae9f142d519c66f4efde9d6d5e6a7e10e18d.zip |
cryptfs_hw: Fix build warnings
* Mark unused parameter
* Remove unused function
Change-Id: I6478ad50a1c1f021a3429bb263b9a670925f5423
-rw-r--r-- | cryptfs_hw.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/cryptfs_hw.c b/cryptfs_hw.c index 42bf4c4..57a65d0 100644 --- a/cryptfs_hw.c +++ b/cryptfs_hw.c @@ -70,10 +70,8 @@ static int (*qseecom_update_key)(int, void*, void*); static int (*qseecom_wipe_key)(int); #endif -#define CRYPTFS_HW_KMS_CLEAR_KEY 0 #define CRYPTFS_HW_KMS_WIPE_KEY 1 #define CRYPTFS_HW_UP_CHECK_COUNT 10 -#define CRYPTFS_HW_CLEAR_KEY_FAILED -11 #define CRYPTFS_HW_KMS_MAX_FAILURE -10 #define CRYPTFS_HW_UPDATE_KEY_FAILED -9 #define CRYPTFS_HW_WIPE_KEY_FAILED -8 @@ -290,28 +288,12 @@ int set_ice_param(int flag) return ret; } #else -int set_ice_param(int flag) +int set_ice_param(__unused int flag) { return -1; } #endif -static int cryptfs_hw_clear_key(enum cryptfs_hw_key_management_usage_type usage) -{ - int32_t ret; - - ret = __cryptfs_hw_wipe_clear_key(usage, CRYPTFS_HW_KMS_CLEAR_KEY); - if (ret) { - SLOGE("Error::ioctl call to wipe the encryption key for usage %d failed with ret = %d, errno = %d\n", - usage, ret, errno); - ret = CRYPTFS_HW_CLEAR_KEY_FAILED; - } else { - SLOGE("SUCCESS::ioctl call to wipe the encryption key for usage %d success with ret = %d\n", - usage, ret); - } - return ret; -} - static int cryptfs_hw_update_key(enum cryptfs_hw_key_management_usage_type usage, unsigned char *current_hash32, unsigned char *new_hash32) { |