net: qrtr: Clean up control packet handling
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Oct 2017 06:45:21 +0000 (23:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2017 22:28:38 +0000 (15:28 -0700)
commit1a7959c76641674991ba3a49f25432f1e105391e
treec8a52ea573b8159676b2fa7f7d7efbc831e67c4d
parente7044482c8ac5081f4775063995647787d5082a4
net: qrtr: Clean up control packet handling

As the message header generation is deferred the internal functions for
generating control packets can be simplified.

This patch modifies qrtr_alloc_ctrl_packet() to, in addition to the
sk_buff, return a reference to a struct qrtr_ctrl_pkt, which clarifies
and simplifies the helpers to the point that these functions can be
folded back into the callers.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/qrtr.c