On Mon, Apr 11, 2022 at 10:34:44PM +0200, Fabio M. De Francesco wrote: > On lunedì 11 aprile 2022 12:21:29 CEST Vihas Makwana wrote: > > Drop some unnecessary wrappers and update all the references > > accordingly. > > Tested on Comfast CF-WU810N RTL8188EUS wireless adapter. > > > > v1 -> v2: > > Drop the wrapper functions with underscores prefixed. > > > > Vihas Makwana (7): > > staging: r8188eu: drop unnecessary wrapper _rtw_free_cmd_priv > > staging: r8188eu: drop unnecessary wrapper _rtw_init_cmd_priv > > staging: r8188eu: drop unnecessary wrapper _rtw_init_evt_priv > > staging: r8188eu: drop unnecessary wrapper _rtw_init_mlme_priv > > staging: r8188eu: drop unnecessary wrapper _rtw_free_mlme_priv > > staging: r8188eu: drop unnecessary wrapper _rtw_alloc_network > > staging: r8188eu: drop unnecessary wrapper _rtw_dequeue_cmd > > > > drivers/staging/r8188eu/core/rtw_cmd.c | 145 +++++++---------- > > drivers/staging/r8188eu/core/rtw_mlme.c | 179 +++++++++------------ > > drivers/staging/r8188eu/include/rtw_mlme.h | 4 +- > > 3 files changed, 135 insertions(+), 193 deletions(-) > > > > -- > > 2.30.2 > > > Formally, you are removing the wrapped functions (or helpers, if you > prefer) by moving their code into the wrappers. To say that you are > removing the wrappers is not correct. I once had someone make me re-write a commit message four time just as a kind of bullying and then at the end he was like, "You said NULL dereference instead of NULL pointer dereference so I had to re-write the commit message and I added some comment to the kernel git log explaining how you suck." So these days I have made it a rule that if you're going to complain about commit messages then you have to write your own for people to cut and paste. Otherwise people are like, "You're too stupid to read my mind. LOL. Do it again." But in this case the commit message is fine. The key things with a commit message are: 1) What's the motivation 2) What's the effect for the user 3) Are all the surprising aspects are explained. Do I have enough information to review it quickly. Removing wrappers is the motivation. No need to explain that further. No effects for the user. There were no surprising bits. It's fine. regards, dan carpenter