diff options
| author | 2018-06-13 19:14:35 +0200 | |
|---|---|---|
| committer | 2018-06-17 09:05:11 +0200 | |
| commit | 2665df51017b15119987913bfa39d02d71cb7232 (patch) | |
| tree | 05f90d6c15d4ae1e54114d804acd52f6910208d1 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | staging: comedi: drivers: ni_mio_common: add names to function pointer parameters. (diff) | |
staging: comedi: Improved readability of function comedi_nsamples_left.
Improve readability of comedi_nsamples_left:
a) Reduce nesting by using more return statements.
b) Declare variables scans_left and samples_left at start of function.
c) Change type of scans_Left to unsigned long long to avoid cast.
Signed-off-by: Chris Opperman <eklikeroomys@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
