]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit13ba564c956d8584d661aeb6ff7c9fa161b84f12
treeb6142b06301c5000cad8f1b7f253d895c0d4d2ee
parent7f2c53bb9512bd6c6c55ce0eed27f5c5da8b7ec2
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