diff options
author | Rashika Kheria | 2013-11-11 07:22:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-11-12 00:52:00 +0100 |
commit | b73db54750482cf3910046c82a84ce8c1684dfbe (patch) | |
tree | 9dfa5bcc66c06fcd1344563d7b03e67c6370eddf /drivers/staging/gdm724x/gdm_lte.c | |
parent | Staging: lirc: fix line over 80 characters (diff) | |
download | kernel-qcow2-linux-b73db54750482cf3910046c82a84ce8c1684dfbe.tar.gz kernel-qcow2-linux-b73db54750482cf3910046c82a84ce8c1684dfbe.tar.xz kernel-qcow2-linux-b73db54750482cf3910046c82a84ce8c1684dfbe.zip |
Staging: dgrp: Refactor the function dgrp_receive() in drrp_net_ops.c
The function dgrp_receive() in dgrp_net_ops.c is too long and can be
refactored. It uses various switch statements and goto labels. I have
removed a label called data and tried to extract a new function out of
it called as handle_data_in_packet().
This helps to make the code more modularize and simple to read and
understand.
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm724x/gdm_lte.c')
0 files changed, 0 insertions, 0 deletions