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 <[email protected]>
  • Loading branch information
cujomalainey authored and lgirdwood committed Oct 15, 2024
1 parent 538006a commit 090f2af
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 090f2af

Please sign in to comment.