staging: r8188eu: core: remove null check before vfree
PATCH v4 1/1 staging: r8188eu: core: remove null check before vfree
Remove NULL check. NULL check before freeing function is not needed. Correct the indentation.
---
ChangeLog V4:
- Add Change log below --- line
ChangeLog V3:
- Add change log.
ChangeLog V2:
- Correct the indentation.
drivers/staging/r8188eu/core/rtw_sta_mgt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/r8188eu/core/rtw_sta_mgt.c +2 -3
@@ -155,9 +155,8 @@ u32 _rtw_free_sta_priv(struct sta_priv *pstapriv)spin_unlock_bh (&pstapriv->sta_hash_lock);/*===============================*/ -if (pstapriv->pallocated_stainfo_buf) -vfree (pstapriv->pallocated_stainfo_buf); - } +vfree (pstapriv->pallocated_stainfo_buf); + }return _SUCCESS; }
--
2.32.0
Quoted 6 lines · Saurav Girepunje
Remove NULL check. NULL check before freeing function is not needed. Correct the indentation.
Signed-off-by Saurav Girepunje <[email protected]>---
Quoted 8 lines
ChangeLog V4:
- Add Change log below --- lineChangeLog V3:
- Add change log.ChangeLog V2:
- Correct the indentation.
You need "---" here also. So everything what is between
---
here
---
will be ignored when you apply patch. This is good place to write changelog, if you have tested this with real hardware, if you have any guestions about your own implementation etc.
Quoted 23 lines
drivers/staging/r8188eu/core/rtw_sta_mgt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/staging/r8188eu/core/rtw_sta_mgt.c +2
-4@@ -155,9 +155,8 @@ u32 _rtw_free_sta_priv(struct sta_priv *pstapriv)spin_unlock_bh (&pstapriv->sta_hash_lock);/*===============================*/ -if (pstapriv->pallocated_stainfo_buf) -vfree (pstapriv->pallocated_stainfo_buf); - } +vfree (pstapriv->pallocated_stainfo_buf); + }return _SUCCESS; } --2.32.0
Quoted 10 lines · Kari Argillander
Quoted 9 lines · Saurav Girepunje
Remove NULL check. NULL check before freeing function is not needed. Correct the indentation.
Signed-off-by Saurav Girepunje <[email protected]>---
ChangeLog V4:
- Add Change log below --- line
Quoted 8 lines
Quoted 5 lines
ChangeLog V3:
- Add change log.ChangeLog V2:
- Correct the indentation.You need "---" here also.
No. It works fine. I applied it myself with git am just to be 100% sure in case I was missing something.
regards,
dan carpenter
Quoted 5 lines · Saurav Girepunje
Remove NULL check. NULL check before freeing function is not needed. Correct the indentation.
Signed-off-by Saurav Girepunje <[email protected]>---
Looks good. Thanks!
regards,
dan carpenter
Quoted 7 lines · Dan Carpenter
Quoted 5 lines · Saurav Girepunje
Remove NULL check. NULL check before freeing function is not needed. Correct the indentation.
Signed-off-by Saurav Girepunje <[email protected]>---
Quoted 7 lines
Looks good. Thanks!
Reviewed-by Dan Carpenter <[email protected]>regards,
dan carpenter
Thanks for review Dan,
Saurav
Quoted 6 lines · Saurav Girepunje
Remove NULL check. NULL check before freeing function is not needed. Correct the indentation.
Signed-off-by Saurav Girepunje <[email protected]>---
Thanks,
Michael
Quoted 4 lines · Michael Straube
Quoted 3 lines · Saurav Girepunje
Remove NULL check. NULL check before freeing function is not needed. Correct the indentation.
Quoted 8 lines
Quoted 3 lines
Signed-off-by Saurav Girepunje <[email protected]>---
Acked-by Michael Straube <[email protected]>Thanks,
Michael
Thanks for Review Michael
Saurav