Re: [PATCH] ieee802154/adf7242: check status of adf7242_read_reg

2020-08-03 Thread Stefan Schmidt
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

RE: [PATCH] ieee802154/adf7242: check status of adf7242_read_reg

2020-08-02 Thread Hennerich, Michael
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

[PATCH] ieee802154/adf7242: check status of adf7242_read_reg

2020-08-02 Thread trix
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