diff options
author | 2014-05-19 06:31:10 +0200 | |
---|---|---|
committer | 2014-05-19 10:08:43 +0200 | |
commit | 47c9807425762a08ca93a2ac876eced8d290c94e (patch) | |
tree | f2f43a7dda3311efff57026a46c79b090ede858b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ALSA: hda - if statement not indented (diff) | |
download | linux-dev-47c9807425762a08ca93a2ac876eced8d290c94e.tar.xz linux-dev-47c9807425762a08ca93a2ac876eced8d290c94e.zip |
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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions