From: Rashika Kheria Date: Mon, 11 Nov 2013 06:22:31 +0000 (+0530) Subject: Staging: dgrp: Refactor the function dgrp_receive() in drrp_net_ops.c X-Git-Tag: v3.14-rc1~150^2~775^2~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b73db54750482cf3910046c82a84ce8c1684dfbe;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed