Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Jul 13, 2023
1 parent 2338f6d commit 12398e6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/systemctrl/src/sctrl_se.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,8 @@ SEConfig* sctrlSEGetConfig(SEConfig *config)
*/
SEConfig* sctrlSEGetConfigEx(SEConfig *config, int size)
{
if (config && size){
if (size != sizeof(SEConfig)){
memset(config, 0, size); // can't process structure
}
else{
memcpy(config, &se_config, size);
}
if (config && size == sizeof(SEConfig)){
memcpy(config, &se_config, size);
}
return &se_config;
}
Expand Down

0 comments on commit 12398e6

Please sign in to comment.