diff options
author | Mike Snitzer <snitzer@kernel.org> | 2024-02-13 12:06:53 -0600 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-04 15:07:56 -0500 |
commit | 2de70388b3751e8cd6727441330978e69a578e0c (patch) | |
tree | 5fc9f0b754e9c8067e77ef4feeded2b7782e97fd /drivers/md/dm-vdo/encodings.c | |
parent | 97d3380396b4cbf302912a0e818fa074afdc0db5 (diff) | |
download | lwn-2de70388b3751e8cd6727441330978e69a578e0c.tar.gz lwn-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/encodings.c')
-rw-r--r-- | drivers/md/dm-vdo/encodings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-vdo/encodings.c b/drivers/md/dm-vdo/encodings.c index 56d94339d2af..a97771fe0a43 100644 --- a/drivers/md/dm-vdo/encodings.c +++ b/drivers/md/dm-vdo/encodings.c @@ -800,7 +800,7 @@ static int allocate_partition(struct layout *layout, u8 id, int result; result = vdo_allocate(1, struct partition, __func__, &partition); - if (result != UDS_SUCCESS) + if (result != VDO_SUCCESS) return result; partition->id = id; |