summaryrefslogtreecommitdiff
path: root/drivers/staging/gdm724x
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-07-22 23:42:28 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-22 16:08:13 -0700
commit58419939bc2c4d33e367ecfe87269b4951b8f557 (patch)
treef1842b24b9202924d7624de7dd12272693dd2836 /drivers/staging/gdm724x
parent5813104211a7db9277794d71814ceb04341b7f3f (diff)
staging: gdm724x: Use NLMSG_HDRLEN
Replace use of NLMSG_SPACE(0) with NLMSG_HDRLEN as they are equivalent and NLMSG_SPACE seems to be deprecated. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm724x')
-rw-r--r--drivers/staging/gdm724x/netlink_k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm724x/netlink_k.c b/drivers/staging/gdm724x/netlink_k.c
index 5ddd36948a2f..59a18304ef4a 100644
--- a/drivers/staging/gdm724x/netlink_k.c
+++ b/drivers/staging/gdm724x/netlink_k.c
@@ -54,7 +54,7 @@ static void netlink_rcv_cb(struct sk_buff *skb)
return;
}
- if (skb->len < NLMSG_SPACE(0)) {
+ if (skb->len < NLMSG_HDRLEN) {
pr_err("nl cb - invalid skb length\n");
return;
}