diff options
| author | Devansh Soni <devanshsoni874@gmail.com> | 2026-06-17 18:08:53 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-07 13:20:49 +0200 |
| commit | a9a79ae0b2c747fbbfddb75ff70d37353a495f1a (patch) | |
| tree | dd031fdf4052d9e01eb7d0265f3330d27e1a410c /scripts | |
| parent | b1dfea3cf9be7d1728b08bbc6cb9c84c8b9e27ed (diff) | |
staging: rtl8723bs: remove redundant rsp_allocated_buf
The original code allocated extra memory and manually aligned the
rsp_buf pointer to a 4-byte boundary, however kzalloc() guarantees a
minimum of 8-byte alignment so this was unnecessary.
Also, because the pointer was shifted, the original pointer had to be
stored in rsp_allocated_buf just so it could be passed to kfree() later.
Remove the redundant alignment math, remove the extra 4 bytes of padding
from kzalloc() call, and assign memory directly to rsp_buf.
This allows us to remove the rsp_allocated_buf variable from cmd_priv
struct.
Suggested-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Devansh Soni <devanshsoni874@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260617123853.63022-1-devanshsoni874@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
