lkml.org 
[lkml]   [2023]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] net: lan78xx: add an error code check in lan78xx_write_raw_eeprom
On Thu, Oct 19, 2023 at 04:40:23PM +0800, Su Hui wrote:
> check the value of 'ret' after call 'lan78xx_read_reg'.
>
> Signed-off-by: Su Hui <suhui@nfschina.com>
> ---
>
> Clang complains that value stored to 'ret' is never read.
> Maybe this place miss an error code check, I'm not sure
> about this.

There are a bunch more "ret = " assignments which aren't used in this
function.

regards,
dan carpenter

\
 
 \ /
  Last update: 2023-10-19 12:36    [W:0.143 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site