Skip to content

Staging: Modify argument of sizeof() to pointer variables.

Sandhya Bankar outreachy 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Staging: android: Modify argument of sizeof() to pointer variables.drivers/staging/android/ion/hisilicon/hi6220_ion.c+1 -11 reply
2/2Staging: lustre: Modify argument of sizeof() to pointer variables.drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c+2 -22 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] Staging: Modify argument of sizeof() to pointer variables.

Modify arguments of sizeof() to pointer variables.
The destination of the allocation has type struct **, so the elements of the array should have pointer type, not structure type.

These changes are made using below Coccinelle script:

@disable sizeof_type_expr@
type T;
T **x;
@@

x =
<+...sizeof(
- T
+ *x
)...+>

Sandhya Bankar (2):
Staging: android: Modify argument of sizeof() to pointer variables.
Staging: lustre: Modify argument of sizeof() to pointer variables.

 drivers/staging/android/ion/hisilicon/hi6220_ion.c |    2 +-
 .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c    |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)