]> git.karo-electronics.de Git - linux-beck.git/commit
staging: cxt1e1: Removed assignments from if statements.
authorChi Pham <fempsci@gmail.com>
Wed, 12 Mar 2014 15:36:19 +0000 (16:36 +0100)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Fri, 14 Mar 2014 00:44:45 +0000 (17:44 -0700)
commit24e7d7990179e5ed38e90d78d12c25fa201c618a
treed2ed509671409a618aeee5ae58616157de418836
parent5a9e30eec8d97ef5d00beaa942b6e2d4dd7d795c
staging: cxt1e1: Removed assignments from if statements.

Assignments removed from if statements.
Fixed checkpatch warning such as indentation and negative error returns in
adjacent code.

Coccinelle was used for this patch. The following script found the match:
@simple@
expression E1, E2;
statement S1, S2;
@@

+ E1 = E2;
  if (
-     (E1 = E2)
+     E1
     )
  S1 else S2

@left@
expression E0, E1, E2;
statement S1, S2;
@@

+ E1 = E2;
  if (
-     (E1 = E2)
+     E1
         == E0
     )
  S1 else S2

Signed-off-by: Chi Pham <fempsci@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/cxt1e1/musycc.c
drivers/staging/cxt1e1/pmcc4_drv.c
drivers/staging/cxt1e1/sbeproc.c