diff options
| author | Kelley Nielsen <kelleynnn@gmail.com> | 2013-11-06 05:08:11 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-10 07:55:00 -0800 |
| commit | 8a58cad260bd37b7d20d222b083b4844d086b2d7 (patch) | |
| tree | f5ba7ebfc3e1900d19dc405193a56a4f3f70f120 /tools/perf/scripts/python/sched-migration.py | |
| parent | 6eca0c1fa29bd4d92cd0cb20fd421c8e631814dc (diff) | |
staging: ft1000: extract helper handle_misc_portid()
The function ft1000_poll, in ft1000_hw.c, is complex, with deep levels
of nesting, unnecessary variables, and style issues. Extract the default
case of the switch statement to its own function, handle_misc_portid.
Make the variable struct dpram_blk *pdpram_blk local to the new function
and remove it from the old. The variable struct pseudo_hdr *ppseudo_hdr is
used only once, to access a member of another struct, so eliminate it
and access the member directly. Return -1 in all the places where the
code fails, and 0 on successful completion. Fix coding style errors.
Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
