Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Julia Lawall and committed by
Greg Kroah-Hartman
4f8c0602 2b6127dd

-2
-2
drivers/usb/wusbcore/crypto.c
··· 222 222 WARN_ON(sizeof(ax) != sizeof(struct aes_ccm_block)); 223 223 224 224 result = -ENOMEM; 225 - zero_padding = sizeof(struct aes_ccm_block) 226 - - blen % sizeof(struct aes_ccm_block); 227 225 zero_padding = blen % sizeof(struct aes_ccm_block); 228 226 if (zero_padding) 229 227 zero_padding = sizeof(struct aes_ccm_block) - zero_padding;