mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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 | ||