diff options
| author | Tobin C. Harding <me@tobin.cc> | 2017-04-27 11:25:17 +1000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-28 11:45:49 +0200 |
| commit | 95e72fba95fd1d9b9ef3ab080aafe1076f42a10a (patch) | |
| tree | cb15d61007b30da14677c5107153f2c7cb8fd120 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 8215fc607f50c516ceeb47fac046c3e4ea7acc4e (diff) | |
staging: ks7010: clean memory allocation
Memory allocation code contains unneeded debug statements, failed
kmalloc() calls typically do not require a debug message. Introduction
of a local 'size' variable allows kmalloc() call to be marginally
cleaner, still uses magic numbers but these require a more substantial
fix. Moving the magic numbers onto a single line opens the way for
further refactoring.
Clean memory allocation code, remove debug statements.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
