diff options
author | Mike Snitzer <snitzer@kernel.org> | 2024-02-13 19:06:53 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-04 21:07:56 +0100 |
commit | 2de70388b3751e8cd6727441330978e69a578e0c (patch) | |
tree | 5fc9f0b754e9c8067e77ef4feeded2b7782e97fd /drivers/md/dm-vdo/thread-utils.c | |
parent | dm vdo memory-alloc: return VDO_SUCCESS on success (diff) | |
download | linux-2de70388b3751e8cd6727441330978e69a578e0c.tar.xz linux-2de70388b3751e8cd6727441330978e69a578e0c.zip |
dm vdo: check for VDO_SUCCESS return value from memory-alloc functions
VDO_SUCCESS and UDS_SUCCESS were used interchangably, update all
callers of VDO's memory-alloc functions to consistently check for
VDO_SUCCESS.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Diffstat (limited to 'drivers/md/dm-vdo/thread-utils.c')
-rw-r--r-- | drivers/md/dm-vdo/thread-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-vdo/thread-utils.c b/drivers/md/dm-vdo/thread-utils.c index ad7682784459..b4aa71fffdbf 100644 --- a/drivers/md/dm-vdo/thread-utils.c +++ b/drivers/md/dm-vdo/thread-utils.c @@ -83,7 +83,7 @@ int vdo_create_thread(void (*thread_function)(void *), void *thread_data, int result; result = vdo_allocate(1, struct thread, __func__, &thread); - if (result != UDS_SUCCESS) { + if (result != VDO_SUCCESS) { uds_log_warning("Error allocating memory for %s", name); return result; } |