diff options
author | Hong zhi guo <honkiko@gmail.com> | 2013-03-27 02:53:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-28 14:27:24 -0400 |
commit | e07ebea0ccfaf627464460eb57d7f2fdbcccf8ec (patch) | |
tree | c8f9ba3c8699cafd8d3c490e62f692d4967b9878 /drivers/scsi/scsi_netlink.c | |
parent | b96dc464994cb6d839c3b307b20061b440dc3edb (diff) |
scsi: replace obsolete NLMSG_* with type safe nlmsg_*
Signed-off-by: Hong Zhiguo <honkiko@gmail.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/scsi_netlink.c')
-rw-r--r-- | drivers/scsi/scsi_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_netlink.c b/drivers/scsi/scsi_netlink.c index 65123a21b97e..fe30ea94ffe6 100644 --- a/drivers/scsi/scsi_netlink.c +++ b/drivers/scsi/scsi_netlink.c | |||
@@ -50,7 +50,7 @@ scsi_nl_rcv_msg(struct sk_buff *skb) | |||
50 | u32 rlen; | 50 | u32 rlen; |
51 | int err, tport; | 51 | int err, tport; |
52 | 52 | ||
53 | while (skb->len >= NLMSG_SPACE(0)) { | 53 | while (skb->len >= NLMSG_HDRLEN) { |
54 | err = 0; | 54 | err = 0; |
55 | 55 | ||
56 | nlh = nlmsg_hdr(skb); | 56 | nlh = nlmsg_hdr(skb); |
@@ -70,7 +70,7 @@ scsi_nl_rcv_msg(struct sk_buff *skb) | |||
70 | goto next_msg; | 70 | goto next_msg; |
71 | } | 71 | } |
72 | 72 | ||
73 | hdr = NLMSG_DATA(nlh); | 73 | hdr = nlmsg_data(nlh); |
74 | if ((hdr->version != SCSI_NL_VERSION) || | 74 | if ((hdr->version != SCSI_NL_VERSION) || |
75 | (hdr->magic != SCSI_NL_MAGIC)) { | 75 | (hdr->magic != SCSI_NL_MAGIC)) { |
76 | err = -EPROTOTYPE; | 76 | err = -EPROTOTYPE; |