-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module_adapter: Make free and prepare methods optional
Simple modules may not need to provide free and prepare functions. To avoid having to provide dummy methods, added an if to check if a module implemented these methods. This will prevent null reference if a module doesn't implement these methods. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
- Loading branch information
1 parent
5c0f8bd
commit 37935d3
Showing
1 changed file
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters