wusb: delete double assignment

Delete successive assignments to the same location.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression i;
@@

*i = ...;
 i = ...;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Julia Lawall 2014-08-23 20:33:26 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель 2b6127ddef
Коммит 4f8c0602ea
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -222,8 +222,6 @@ static int wusb_ccm_mac(struct crypto_blkcipher *tfm_cbc,
WARN_ON(sizeof(ax) != sizeof(struct aes_ccm_block)); WARN_ON(sizeof(ax) != sizeof(struct aes_ccm_block));
result = -ENOMEM; result = -ENOMEM;
zero_padding = sizeof(struct aes_ccm_block)
- blen % sizeof(struct aes_ccm_block);
zero_padding = blen % sizeof(struct aes_ccm_block); zero_padding = blen % sizeof(struct aes_ccm_block);
if (zero_padding) if (zero_padding)
zero_padding = sizeof(struct aes_ccm_block) - zero_padding; zero_padding = sizeof(struct aes_ccm_block) - zero_padding;