Hello.
On 02.08.20 16:23, t...@redhat.com wrote:
From: Tom Rix
Clang static analysis reports this error
adf7242.c:887:6: warning: Assigned value is garbage or undefined
len = len_u8;
^ ~~
len_u8 is set in
adf7242_read_reg(lp, 0, &len_u8);
When this call fai
ger.kernel.org; linux-
> ker...@vger.kernel.org; Tom Rix
> Subject: [PATCH] ieee802154/adf7242: check status of adf7242_read_reg
>
>
> From: Tom Rix
>
> Clang static analysis reports this error
>
> adf7242.c:887:6: warning: Assigned valu
From: Tom Rix
Clang static analysis reports this error
adf7242.c:887:6: warning: Assigned value is garbage or undefined
len = len_u8;
^ ~~
len_u8 is set in
adf7242_read_reg(lp, 0, &len_u8);
When this call fails, len_u8 is not set.
So check the return code.
Fixe
3 matches
Mail list logo