Re: [PATCH] wl3501_cs: remove redundant variable ret

2019-07-15 Thread Kalle Valo
Colin King writes: > From: Colin Ian King > > The variable ret is being initialized with a value that is never > read and it is being updated later with a new value that is returned. > The variable is redundant and can be replaced with a return 0 as > there are no other return points in this fun

[PATCH] wl3501_cs: remove redundant variable ret

2019-07-05 Thread Colin King
From: Colin Ian King The variable ret is being initialized with a value that is never read and it is being updated later with a new value that is returned. The variable is redundant and can be replaced with a return 0 as there are no other return points in this function. Addresses-Coverity: ("Un