linux_dsm_epyc7002/arch/s390/oprofile
Julia Lawall 94414ca08a s390/oprofile: 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>

[heiko.carstens: turn prepare_cpu_buffers into a void returning function]
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2014-05-27 10:26:00 +02:00
..
backtrace.c s390: make use of user_mode() macro where possible 2012-07-30 11:03:12 +02:00
hwsampler.c s390/oprofile: make return of 0 explicit 2014-05-27 10:26:00 +02:00
hwsampler.h s390/oprofile: move hwsampler interfaces to cpu_mf.h 2013-12-16 14:37:50 +01:00
init.c s390/perf,oprofile: Share sampling facility 2013-12-16 14:37:52 +01:00
Makefile [S390] oprofile: disable hw sampling for CONFIG_32BIT 2011-03-23 10:15:14 +01:00
op_counter.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00