]> git.baikalelectronics.ru Git - kernel.git/commit
fs: cifs: remove unused variable.
authorCyril Roelandt <tipecaml@gmail.com>
Thu, 3 Apr 2014 22:05:21 +0000 (00:05 +0200)
committerSteve French <smfrench@gmail.com>
Wed, 16 Apr 2014 18:51:46 +0000 (13:51 -0500)
commitb26a4ecc774a78895aeee33f99f34fcd2f65b383
treede09ad3494f0f58168b8327feee6c97b38a4b6ab
parentfd230ce65526c2e5e14f7c26c0cd7071d7477ac3
fs: cifs: remove unused variable.

In SMB2_set_compression(), the "res_key" variable is only initialized to NULL
and later kfreed. It is therefore useless and should be removed.

Found with the following semantic patch:

<smpl>
@@
identifier foo;
identifier f;
type T;
@@
* f(...) {
...
* T *foo = NULL;
... when forall
    when != foo
* kfree(foo);
...
}
</smpl>

Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/smb2pdu.c