git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f2c53b
)
target: remove unneeded array
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sun, 30 Nov 2014 18:14:12 +0000
(19:14 +0100)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Tue, 2 Dec 2014 05:36:22 +0000
(21:36 -0800)
Delete a local array that is only used to be initialized by memset.
A semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
identifier x;
type T;
@@
{
... when any
-T x[...];
<+... when != x
- memset(x,...);
...+>
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c
patch
|
blob
|
history
diff --cc
drivers/target/target_core_pr.c
Simple merge