mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
c5d692a233
Building with clang static analysis returns this warning:
qm.c:4382:11: warning: The left operand of '==' is a garbage value
if (*val == 0 || *val > QM_QOS_MAX_VAL || ret) {
~~~~ ^
The call to qm_qos_value_init() can return an error without setting
*val. So check ret before checking *val.
Fixes:
|
||
---|---|---|
.. | ||
hpre | ||
sec | ||
sec2 | ||
trng | ||
zip | ||
Kconfig | ||
Makefile | ||
qm.c | ||
qm.h | ||
sgl.c |