Skip to content

Commit

Permalink
cmocka: update create to use standard alloc flow
Browse files Browse the repository at this point in the history
gotta test all the standard flows

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
  • Loading branch information
cujomalainey committed Oct 10, 2024
1 parent 659b62f commit 79a7efd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/cmocka/src/audio/mixer/comp_mock.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ static struct comp_dev *mock_comp_new(const struct comp_driver *drv,
const struct comp_ipc_config *config,
const void *spec)
{
struct comp_dev *dev = calloc(1, sizeof(struct comp_dev));
struct comp_dev *dev = comp_alloc(drv, sizeof(*dev));

dev->drv = drv;
return dev;
}

Expand Down

0 comments on commit 79a7efd

Please sign in to comment.