[<prev] [next>] [day] [month] [year] [list]
Message-ID: <5520271.xSIEuOTSxb@localhost.localdomain>
Date: Sun, 26 Sep 2021 13:10:54 +0200
From: "Fabio M. De Francesco" <fmdefrancesco@...il.com>
To: gregkh@...uxfoundation.org, fabioaiuto83@...il.com,
guolongji <guolongji@...ontech.com>
Cc: ross.schm.dev@...il.com, marcocesati@...il.com,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
guolongji <guolongji@...ontech.com>
Subject: Re: [PATCH] staging: rtl8723bs: remove meaningless pstat->passoc_req check in OnAssocReq()
On Sunday, September 26, 2021 12:30:14 PM CEST guolongji wrote:
> kfree(NULL) is safe and the check 'if (pstat->passoc_req)' before kfree
> is not possible.
>
> Signed-off-by: guolongji <guolongji@...ontech.com>
> ---
Why is it "not possible"? Do you get syntax errors? Are the logic and the
result of the function altered? If not, control is certainly "possible".
Remember that something may be unnecessary and redundant even if
it is still possible.
Regards,
Fabio
Powered by blists - more mailing lists