Re: [PATCH] staging: r8188eu: core: Remove rtw_mfree_all_stainfo()

From: Dan Carpenter
Date: Wed Aug 04 2021 - 09:02:47 EST


On Mon, Aug 02, 2021 at 02:55:17AM +0200, Fabio M. De Francesco wrote:
> Remove rtw_mfree_all_stainfo() and the only line of code that calls
> it. This function simply takes a spinlock and iterates over a list
> with no purpose. That iteration has no side effects.
>

I mean, it's pretty clearly supposed to free all the items on the list.

regards,
dan carpenter