sound: mpu401.c: make return of 0 explicit
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 19 May 2014 04:31:10 +0000 (06:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 May 2014 08:08:43 +0000 (10:08 +0200)
commit47c9807425762a08ca93a2ac876eced8d290c94e
treef2f43a7dda3311efff57026a46c79b090ede858b
parentd576422eda7fc999bf7c9862fa0a75bf0323417f
sound: mpu401.c: make return of 0 explicit

Delete unnecessary local variable whose value is always 0 and that hides
the fact that the result is always 0.

A simplified version of the semantic patch that fixes this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r exists@
local idexpression ret;
expression e;
position p;
@@

-ret = 0;
... when != ret = e
return
- ret
+ 0
  ;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/mpu401.c
This page took 0.025786 seconds and 5 git commands to generate.