forked from Minki/linux
13462ba181
Clang static analysis reports this problem
dw-i3c-master.c:799:9: warning: The result of the left shift is
undefined because the left operand is negative
COMMAND_PORT_DEV_INDEX(pos) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~
pos can be negative because dw_i3c_master_get_free_pos() can return an
error. So check for an error.
Fixes:
|
||
---|---|---|
.. | ||
mipi-i3c-hci | ||
dw-i3c-master.c | ||
i3c-master-cdns.c | ||
Kconfig | ||
Makefile | ||
svc-i3c-master.c |