]> git.baikalelectronics.ru Git - kernel.git/commit
connector: use nlmsg_put() instead of NLMSG_PUT() macro.
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Tue, 26 Jun 2012 05:41:24 +0000 (05:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2012 04:14:20 +0000 (21:14 -0700)
commit0db567c5797c5c0485e6568844f50e5983a4f6cf
treedfa309a0e71fb29912465a239d5fef386ab18391
parent2b91a041b67bc4b8f42d5ae22039faf1dcaa97f9
connector: use nlmsg_put() instead of NLMSG_PUT() macro.

The NLMSG_PUT() macro contains a hidden goto which makes the code hard
to audit and very error prone.

While been there also use the inline function nlmsg_data() instead of the
NLMSG_DATA() macro to do explicit type checking.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/connector.c