mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 15:34:48 +08:00
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 | ||
m5mols_capture.c | ||
m5mols_controls.c | ||
m5mols_core.c | ||
m5mols_reg.h | ||
m5mols.h | ||
Makefile |