forked from Imagelibrary/rtems
libblock: Avoid uninitialized variable
This commit is contained in:
@@ -1348,8 +1348,7 @@ rtems_bdbuf_swapout_workers_create (void)
|
||||
|
||||
worker_size = rtems_bdbuf_swapout_worker_size ();
|
||||
worker_current = calloc (1, bdbuf_config.swapout_workers * worker_size);
|
||||
if (!worker_current)
|
||||
sc = RTEMS_NO_MEMORY;
|
||||
sc = worker_current != NULL ? RTEMS_SUCCESSFUL : RTEMS_NO_MEMORY;
|
||||
|
||||
bdbuf_cache.swapout_workers = (rtems_bdbuf_swapout_worker *) worker_current;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user