OSDN Git Service

net/smc: restructure CDC message reception
authorHans Wippel <hwippel@linux.ibm.com>
Fri, 18 May 2018 07:34:15 +0000 (09:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 17:15:01 +0000 (13:15 -0400)
commitd7b0e37c1ac152905b18a5b9506179091a35b0b6
treebfa2605af15ffc23f2d5954191222390a1b3b7a5
parent2f6becaf79cd16f35ee7cb108200b898235b5aa2
net/smc: restructure CDC message reception

This patch moves a CDC sanity check from smc_cdc_msg_recv_action() to
the other sanity checks in smc_cdc_rx_handler(). While doing this, it
simplifies smc_cdc_msg_recv() and removes unneeded function parameters.

Signed-off-by: Hans Wippel <hwippel@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_cdc.c