Staging: Modify argument of sizeof() to pointer variables.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Staging: android: Modify argument of sizeof() to pointer variables.drivers/ | +1 | 1 reply | |
| 2/2 | Staging: lustre: Modify argument of sizeof() to pointer variables.drivers/ | +2 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)