Merge branch 'rs/cocci-de-paren-call-params'
Code clean-up. * rs/cocci-de-paren-call-params: coccinelle: remove parentheses that become unnecessary
This commit is contained in:
commit
ac67aa5fd0
@ -4,7 +4,7 @@ T *dst;
|
||||
T *src;
|
||||
expression n;
|
||||
@@
|
||||
- memcpy(dst, src, n * sizeof(*dst));
|
||||
- memcpy(dst, src, (n) * sizeof(*dst));
|
||||
+ COPY_ARRAY(dst, src, n);
|
||||
|
||||
@@
|
||||
@ -13,7 +13,7 @@ T *dst;
|
||||
T *src;
|
||||
expression n;
|
||||
@@
|
||||
- memcpy(dst, src, n * sizeof(*src));
|
||||
- memcpy(dst, src, (n) * sizeof(*src));
|
||||
+ COPY_ARRAY(dst, src, n);
|
||||
|
||||
@@
|
||||
@ -22,7 +22,7 @@ T *dst;
|
||||
T *src;
|
||||
expression n;
|
||||
@@
|
||||
- memcpy(dst, src, n * sizeof(T));
|
||||
- memcpy(dst, src, (n) * sizeof(T));
|
||||
+ COPY_ARRAY(dst, src, n);
|
||||
|
||||
@@
|
||||
@ -47,7 +47,7 @@ type T;
|
||||
T *ptr;
|
||||
expression n;
|
||||
@@
|
||||
- ptr = xmalloc(n * sizeof(*ptr));
|
||||
- ptr = xmalloc((n) * sizeof(*ptr));
|
||||
+ ALLOC_ARRAY(ptr, n);
|
||||
|
||||
@@
|
||||
@ -55,5 +55,5 @@ type T;
|
||||
T *ptr;
|
||||
expression n;
|
||||
@@
|
||||
- ptr = xmalloc(n * sizeof(T));
|
||||
- ptr = xmalloc((n) * sizeof(T));
|
||||
+ ALLOC_ARRAY(ptr, n);
|
||||
|
Loading…
Reference in New Issue
Block a user