On Wed, Mar 30, 2022 at 09:28:59AM +0800, Haowen Bai wrote: > As init_mlme_ext_priv function always returns SUCCESS , We can change > return type from int to void. > > fixes coccinelle warning: > ./drivers/staging/r8188eu/core/rtw_mlme_ext.c:357:5-8: Unneeded variable: "res". > Return "_SUCCESS" on line 380 > > Signed-off-by: Haowen Bai <baihaowen@xxxxxxxxx> > --- > V1->V2: split into two patches. > V2->V3: change return type from int to void. > V3->V4: just delete the unused label but don't delete the free function. Looks okay now. Thanks! Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> regards, dan carpenter