Skip to contentSkip to conversation

staging: gdm724x: Use NLMSG_HDRLEN

PATCH New Himangi Saraogi 1 participant 1 message Jul 22, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
To send to: Greg Kroah-Hartman <[email protected]>,[email protected],[email protected]

 drivers/staging/gdm724x/netlink_k.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gdm724x/netlink_k.c +1 -1
index 5ddd369..59a1830 100644
@@ -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;
 	}
Signature · 1 line
1.9.1