Crypto: Fix checkpatch issues
Fix checkpatch issues for the interface and aead modules after last
additions.
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I2eaf8109e3cb9a9c60ba5b15d9776a83f6bab776
diff --git a/interface/src/tfm_crypto_ipc_api.c b/interface/src/tfm_crypto_ipc_api.c
index cd43112..fabbc94 100644
--- a/interface/src/tfm_crypto_ipc_api.c
+++ b/interface/src/tfm_crypto_ipc_api.c
@@ -810,6 +810,7 @@
in_vec[0].len = sizeof(struct tfm_crypto_pack_iovec);
size_t in_len = IOVEC_LEN(in_vec);
+
if (additional_data == NULL) {
in_len--;
}
@@ -870,6 +871,7 @@
in_vec[0].len = sizeof(struct tfm_crypto_pack_iovec);
size_t in_len = IOVEC_LEN(in_vec);
+
if (additional_data == NULL) {
in_len--;
}
@@ -1026,6 +1028,7 @@
};
size_t in_len = IOVEC_LEN(in_vec);
+
if (input == NULL) {
in_len--;
}
@@ -1062,6 +1065,7 @@
};
size_t in_len = IOVEC_LEN(in_vec);
+
if (input == NULL) {
in_len--;
}
@@ -1101,6 +1105,7 @@
};
size_t out_len = IOVEC_LEN(out_vec);
+
if (ciphertext == NULL || ciphertext_size == 0) {
out_len--;
}
@@ -1149,6 +1154,7 @@
};
size_t out_len = IOVEC_LEN(out_vec);
+
if (plaintext == NULL || plaintext_size == 0) {
out_len--;
}
@@ -1333,6 +1339,7 @@
};
size_t in_len = IOVEC_LEN(in_vec);
+
if (salt == NULL) {
in_len--;
}
@@ -1377,6 +1384,7 @@
};
size_t in_len = IOVEC_LEN(in_vec);
+
if (salt == NULL) {
in_len--;
}