diff options
author | Julia Lawall <julia@diku.dk> | 2010-10-26 10:25:30 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-09 22:05:22 (GMT) |
commit | 61241d97db02559bd83d21ffa783ab327945b925 (patch) | |
tree | 99e1a5d33d9aa2bf2287a8682084554ca7c513f8 /drivers/staging/hv/hv_utils.c | |
parent | 22b4dc5917a2644001e449b238ac18fb182b27fc (diff) | |
download | linux-61241d97db02559bd83d21ffa783ab327945b925.tar.xz |
drivers/staging: delete double assignment
Delete successive assignments to the same location. In three of the cases,
the two assignments are identical. In the case of the file
rt2860/common/cmm_aes.c, the assigned variable i is never used, so both
assignments are dropped.
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@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/hv_utils.c')
-rw-r--r-- | drivers/staging/hv/hv_utils.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/hv/hv_utils.c b/drivers/staging/hv/hv_utils.c index 702a478..a99e900 100644 --- a/drivers/staging/hv/hv_utils.c +++ b/drivers/staging/hv/hv_utils.c @@ -212,9 +212,6 @@ static void heartbeat_onchannelcallback(void *context) recvlen, requestid); icmsghdrp = (struct icmsg_hdr *)&buf[ - sizeof(struct vmbuspipe_hdr)]; - - icmsghdrp = (struct icmsg_hdr *)&buf[ sizeof(struct vmbuspipe_hdr)]; if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) { |