Skip to content

Remove useless cast on void pointer

Amitoj Kaur Chawla outreachy 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

-Remove unnecessary parentheses

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging: rtl8712: Remove useless cast on void pointerdrivers/staging/rtl8712/rtl8712_cmd.c+1 -10 replies
2/3staging: rtl8712: Remove useless cast on void pointerdrivers/staging/rtl8712/rtl8712_recv.c+4 -50 replies
3/3staging: rtl8712: Remove useless cast on void pointerdrivers/staging/rtl8712/rtl871x_mp_ioctl.c+35 -702 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Remove useless cast on void pointer

This patchset removes multiple useless cast on void pointer.

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)

Amitoj Kaur Chawla (3):
staging: rtl8712: Remove useless cast on void pointer
staging: rtl8712: Remove useless cast on void pointer
staging: rtl8712: Remove useless cast on void pointer

Changes in v2:
-Remove unnecessary parentheses

 drivers/staging/rtl8712/rtl8712_cmd.c      |   2 +-
 drivers/staging/rtl8712/rtl8712_recv.c     |   9 ++-
 drivers/staging/rtl8712/rtl871x_mp_ioctl.c | 105 ++++++++++-------------------
 3 files changed, 40 insertions(+), 76 deletions(-)
Signature · 1 line
1.9.1