Re: [PATCH] wl3501_cs: Remove unnecessary NULL check

2020-09-29 Thread Kalle Valo
Alex Dewar wrote: > In wl3501_detach(), link->priv is checked for a NULL value before being > passed to free_netdev(). However, it cannot be NULL at this point as it > has already been passed to other functions, so just remove the check. > > Addresses-Coverity: CID 710499: Null pointer dereferen

[PATCH] wl3501_cs: Remove unnecessary NULL check

2020-09-26 Thread Alex Dewar
In wl3501_detach(), link->priv is checked for a NULL value before being passed to free_netdev(). However, it cannot be NULL at this point as it has already been passed to other functions, so just remove the check. Addresses-Coverity: CID 710499: Null pointer dereferences (REVERSE_INULL) Signed-off