net: qrtr: Refactor packet allocation
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 7 Jun 2017 21:07:36 +0000 (14:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 15:34:56 +0000 (11:34 -0400)
commit64f9eca06415dc820ff8a2263f846dc8199adb50
tree0ba50b4a06cc83d2093aed2654760f3e02667775
parent02417f47875c2a22d2a8c140c5b945c741005938
net: qrtr: Refactor packet allocation

Extract the allocation and filling in the control message header fields
to a separate function in order to reuse this in subsequent patches.

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