connector: use 'size' everywhere in cn_netlink_send()
authorMathias Krause <minipli@googlemail.com>
Mon, 30 Sep 2013 20:03:08 +0000 (22:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2013 20:03:50 +0000 (16:03 -0400)
commitac73bf50b709dea4e39635151b861b8a8f52bfbb
treef63b489a95edfd71781772370511fe16bb398fb0
parent162b2bedc084d2d908a04c93383ba02348b648b0
connector: use 'size' everywhere in cn_netlink_send()

We calculated the size for the netlink message buffer as size. Use size
in the memcpy() call as well instead of recalculating it.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/connector.c