Commit [24e7d7] Maximize Restore History

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>

Chi Pham Chi Pham 2014-03-12

Peter P Waskiewicz Jr Peter P Waskiewicz Jr 2014-03-14

changed drivers
changed drivers/staging
changed drivers/staging/cxt1e1
changed drivers/staging/cxt1e1/musycc.c
changed drivers/staging/cxt1e1/pmcc4_drv.c
changed drivers/staging/cxt1e1/sbeproc.c
drivers
Directory.
drivers/staging
Directory.
drivers/staging/cxt1e1/musycc.c Diff Switch to side-by-side view
Loading...
drivers/staging/cxt1e1/pmcc4_drv.c Diff Switch to side-by-side view
Loading...
drivers/staging/cxt1e1/sbeproc.c Diff Switch to side-by-side view
Loading...