52438c4463
clang static analysis reports this error
m5mols_core.c:767:4: warning: Called function pointer
is null (null dereference) [core.CallAndMessage]
info->set_power(&client->dev, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In other places, the set_power ptr is checked.
So add a check.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
m5mols.h | ||
m5mols_capture.c | ||
m5mols_controls.c | ||
m5mols_core.c | ||
m5mols_reg.h |