staging: dgnc: delete successive assignments to the same location
authorJiayi Ye <yejiayily@gmail.com>
Sat, 25 Oct 2014 12:04:17 +0000 (20:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 07:41:43 +0000 (15:41 +0800)
commit308c32f9e8f4ead8e6b37ed3a479ac5f95e58707
tree495ba6a0f688f5edd3617f3e70afd29b4fcfca42
parentf474f5e5353d9a935833b69d029db4856b6bd6e9
staging: dgnc: delete successive assignments to the same location

Successive assignments to the same location is meaningless and can be
deleted. The Coccinelle semantic patch was used to find cases.

@@
expression e1,e2,e3;
@@

(
 (<+...e1++...+>)=e2;
|
 (<+...e1--...+>)=e2;
|
 (<+...++e1...+>)=e2;
|
 (<+...--e1...+>)=e2;
|
e1=e2;
e1 = <+...e1...+>;
|
*e1=e2;
*e1=e3;
)

Signed-off-by: Jiayi Ye <yejiayily@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c
This page took 0.024544 seconds and 5 git commands to generate.