Re: [PATCH] Fix checkpatch.pl warnings in rtw_ieee80211.c.

From: Dan Carpenter

Date: Thu Feb 05 2026 - 00:47:07 EST


On Wed, Feb 04, 2026 at 07:41:33PM +0100, Haroen Tmimi wrote:
> 1. Fix "Yoda condition" style issues by moving constants to the right
> side of the comparison (e.g., changing "_SUCCESS == val" to
> "val == _SUCCESS").
>
> 2. Change the _action_public_str array to "static const char * const"
> to ensure the array entries are read-only, preventing accidental
> modification of the pointers.
>

These are unrelated things so they should be two patches. But
apparently someone else already did at least part of this...

regards,
dan carpenter