diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-05-19 06:31:10 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-05-19 10:08:43 +0200 |
commit | 47c9807425762a08ca93a2ac876eced8d290c94e (patch) | |
tree | f2f43a7dda3311efff57026a46c79b090ede858b /sound/oss/Makefile | |
parent | d576422eda7fc999bf7c9862fa0a75bf0323417f (diff) |
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>
Diffstat (limited to 'sound/oss/Makefile')
0 files changed, 0 insertions, 0 deletions