summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorXie He <xie.he.0141@gmail.com>2020-10-31 21:10:39 +0300
committerJakub Kicinski <kuba@kernel.org>2020-11-04 02:19:09 +0300
commit583d5333ed7dcdc0c7a3f8ec8b818b7ae4a59e8e (patch)
tree3d1e75e2f95661afdf1a59ae466ffb4c66b0621a /COPYING
parent16b5f5ce351f8709a6b518cc3cbf240c378305bf (diff)
downloadlinux-583d5333ed7dcdc0c7a3f8ec8b818b7ae4a59e8e.tar.xz
net: hdlc_fr: Simpify fr_rx by using "goto rx_drop" to drop frames
When the fr_rx function drops a received frame (because the protocol type is not supported, or because the PVC virtual device that corresponds to the DLCI number and the protocol type doesn't exist), the function frees the skb and returns. The code for freeing the skb and returning is repeated several times, this patch uses "goto rx_drop" to replace them so that the code looks cleaner. Cc: Krzysztof Halasa <khc@pm.waw.pl> Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com> Signed-off-by: Xie He <xie.he.0141@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions