Skip to content

Commit

Permalink
Change default return value to negative
Browse files Browse the repository at this point in the history
Signed-off-by: Xuejun Yang <[email protected]>
  • Loading branch information
jxyang committed Feb 5, 2021
1 parent d7f8b1f commit b86cef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/enter.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static const char* _getenv(const char** envp, const char* varname)

static int _create_tls_credentials()
{
int ret = 1;
int ret = -EINVAL;
uint8_t* cert = NULL;
size_t cert_size = 0;
uint8_t* pkey = NULL;
Expand Down

0 comments on commit b86cef7

Please sign in to comment.