diff options
author | Franck LENORMAND <franck.lenormand@nxp.com> | 2018-11-23 11:37:28 +0100 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:35:35 +0800 |
commit | 7451aba1e73574935924e365490959e9d7092006 (patch) | |
tree | 81637ce1ee79857c3408f7e67ea440598ada3a3a /lib/list_debug.c | |
parent | 39603fd68e623961855ceacbf68e1acb70218f3c (diff) |
MLK-20204: drivers: crypto: caam: sm: Remove deadcode
There was some code to free the keystore but the current
state of the function make this code unreachable so
remove it.
Coverity explanation:
drivers/crypto/caam/sm_store.c:654: CID 17839 (#1 of 1):
Type: Logically dead code (DEADCODE)
Classification: Bug
Severity: Major
Action: Fix Required
Owner: nxa21133
Defect only exists locally.
drivers/crypto/caam/sm_store.c:625:
cond_null: Condition "keystore_data == NULL", taking true branch. Now
the value of "keystore_data" is "NULL".
drivers/crypto/caam/sm_store.c:653:
null: At condition "keystore_data != NULL", the value of "keystore_data"
must be "NULL".
drivers/crypto/caam/sm_store.c:653:
dead_error_condition: The condition "keystore_data != NULL" cannot be
true.
drivers/crypto/caam/sm_store.c:654:
dead_error_line: Execution cannot reach this statement:
"kfree(keystore_data);".
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions