Skip to content

Commit

Permalink
sound/oss/sb_ess.c: delete double assignment
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Julia Lawall authored and tiwai committed Oct 26, 2010
1 parent 335e3b8 commit 3342b96
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/oss/sb_ess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,6 @@ printk (KERN_INFO "FKS: es_rec_set_recmask mask = %x\n", mask);
left = value & 0x000000ff;
right = (value & 0x0000ff00) >> 8;
} else { /* Turn it off (3) */
left = 0;
left = 0;
right = 0;
}
Expand Down

0 comments on commit 3342b96

Please sign in to comment.