diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-08-23 14:33:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-24 01:03:54 -0400 |
commit | 4f8c0602ea75a48c3fd3e9ccd7b54b34ce68e71f (patch) | |
tree | 2dc8336bfa685637f8e1ecce9f78278b4179cb53 | |
parent | 2b6127ddefb33c339b4f1effcefc788fdd3d7679 (diff) |
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>
-rw-r--r-- | drivers/usb/wusbcore/crypto.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/wusbcore/crypto.c b/drivers/usb/wusbcore/crypto.c index 9a95b2dc6d1b..50ce80d604f3 100644 --- a/drivers/usb/wusbcore/crypto.c +++ b/drivers/usb/wusbcore/crypto.c | |||
@@ -222,8 +222,6 @@ static int wusb_ccm_mac(struct crypto_blkcipher *tfm_cbc, | |||
222 | WARN_ON(sizeof(ax) != sizeof(struct aes_ccm_block)); | 222 | WARN_ON(sizeof(ax) != sizeof(struct aes_ccm_block)); |
223 | 223 | ||
224 | result = -ENOMEM; | 224 | result = -ENOMEM; |
225 | zero_padding = sizeof(struct aes_ccm_block) | ||
226 | - blen % sizeof(struct aes_ccm_block); | ||
227 | zero_padding = blen % sizeof(struct aes_ccm_block); | 225 | zero_padding = blen % sizeof(struct aes_ccm_block); |
228 | if (zero_padding) | 226 | if (zero_padding) |
229 | zero_padding = sizeof(struct aes_ccm_block) - zero_padding; | 227 | zero_padding = sizeof(struct aes_ccm_block) - zero_padding; |