Re: [PATCH v6 2/2] staging: rtl8723bs: Prevent duplicate NULL tests on psta pointer

Andy Shevchenko
2025-04-19T16:25:11Z

On Fri, Apr 18, 2025 at 03:41:57PM +0000, Abraham Samuel Adekunle wrote:
> The psta pointer had previously been tested for NULL after initialization,
> as seen in the code below:
>
> psta = rtw_get_stainfo(&padapter->stapriv, pattrib->ra);
> ...
> if (!psta)
> return _FAIL;
> This makes a second NULL test on psta unnecessary.
>
> Remove the second NULL test on psta to avoid redundancy in code.
>
> Found by Cocinelle

Missing period.

P.S. Here the commit message is fine, however misindented
(check the indentation).

--
With Best Regards,
Andy Shevchenko