Skip to content

Commit c77e5a6

Browse files
nordic-krchkartben
authored andcommitted
soc: nordic: common: mram_latency: Fix returning uninitialized value
An uninitialized variable was returned on success which could led by init_nrfs. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 9985a09 commit c77e5a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

soc/nordic/common/mram_latency.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ static int init_manager(void)
148148
static int init_nrfs(void)
149149
{
150150
nrfs_err_t err;
151-
int rv;
152151

153152
err = nrfs_backend_wait_for_connection(K_FOREVER);
154153
if (err != NRFS_SUCCESS) {
@@ -172,7 +171,7 @@ static int init_nrfs(void)
172171
mram_no_latency_sync_request();
173172
}
174173

175-
return rv;
174+
return 0;
176175
}
177176

178177
SYS_INIT(init_manager, PRE_KERNEL_1, 0);

0 commit comments

Comments
 (0)