]> git.baikalelectronics.ru Git - kernel.git/commit
target: remove unneeded array
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 30 Nov 2014 18:14:12 +0000 (19:14 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Dec 2014 05:36:22 +0000 (21:36 -0800)
commit52ac90f03693a06f792400abcd9d5d17e6f200a9
treeb6142b06301c5000cad8f1b7f253d895c0d4d2ee
parent97d69fa877ecd18902b6b8becdf9bc34669d77a2
target: remove unneeded array

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