mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-12 21:30:41 +00:00
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 | ||