dcbnl: Silence harmless gcc warning about uninitialized reply_nlh
authorThomas Graf <tgraf@suug.ch>
Wed, 13 Jun 2012 22:34:03 +0000 (22:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jun 2012 08:45:46 +0000 (01:45 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c

index 70bba3eb4ae95d86fe5e1b5e0837c741381b4bda..da6ee81ce51f4067b919618a766031cc18de99df 100644 (file)
@@ -1664,7 +1664,7 @@ static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
        u32 pid = skb ? NETLINK_CB(skb).pid : 0;
        int ret = -EINVAL;
        struct sk_buff *reply_skb;
-       struct nlmsghdr *reply_nlh;
+       struct nlmsghdr *reply_nlh = NULL;
        const struct reply_func *fn;
 
        if (!net_eq(net, &init_net))