Skip to content

Commit 7eaf72c

Browse files
jh6186andrewc-arm
authored andcommitted
Tidy up comments
Signed-off-by: PARKJIHOON <[email protected]>
1 parent 56ede76 commit 7eaf72c

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

targets/TARGET_Samsung/security_subsystem/drivers/sss_driver_sha2.c

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ int sss_SHA2_256(
5454
return ret;
5555
}
5656

57-
//! step 0 : Check validity of parameter "object_id"
58-
#if 0
59-
if (pstMessage->u32DataByteLen == 0) {
60-
return ERROR_HASH_INVALID_LEN_MSG;
61-
}
62-
#endif
63-
6457
//! assign hash_byte_len to compare returned result from sss_fw after hash operation
6558
object_id = OID_SHA2_256;
6659
block_byte_len = 64;
@@ -108,13 +101,6 @@ int sss_SHA2_384(
108101
return ret;
109102
}
110103

111-
//! step 0 : Check validity of parameter "object_id"
112-
#if 0
113-
if (pstMessage->u32DataByteLen == 0) {
114-
return ERROR_HASH_INVALID_LEN_MSG;
115-
}
116-
#endif
117-
118104
//! assign hash_byte_len to compare returned result from sss_fw after hash operation
119105
object_id = OID_SHA2_384;
120106
block_byte_len = 128;
@@ -161,14 +147,7 @@ int sss_SHA2_512(
161147
if (ret != SSSR_SUCCESS) {
162148
return ret;
163149
}
164-
165-
//! step 0 : Check validity of parameter "object_id"
166-
#if 0
167-
if (pstMessage->u32DataByteLen == 0) {
168-
return ERROR_HASH_INVALID_LEN_MSG;
169-
}
170-
#endif
171-
150+
172151
//! assign hash_byte_len to compare returned result from sss_fw after hash operation
173152
object_id = OID_SHA2_512;
174153
block_byte_len = 128;

0 commit comments

Comments
 (0)