Skip to content

Commit

Permalink
module-adapter: (cosmetic) remove a redundant check
Browse files Browse the repository at this point in the history
rfree(NULL) is valid, remove a redundant NULL check.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Sep 12, 2023
1 parent 3c0f868 commit 6796e38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/audio/module_adapter/module/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ int module_prepare(struct processing_module *mod,
* as it has been applied during the procedure - it is safe to
* free it.
*/
if (md->cfg.data)
rfree(md->cfg.data);
rfree(md->cfg.data);

md->cfg.avail = false;
md->cfg.data = NULL;
Expand Down

0 comments on commit 6796e38

Please sign in to comment.