diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 19:51:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 19:51:45 -0500 |
commit | 180b65df7ba1e700e28aabfbddbad84b7beebe4b (patch) | |
tree | 2563802614050480f4b85dd7b0559b4aa7d49bc6 /fs | |
parent | d3f644da909549a4cf0ad27541df342f75158cc0 (diff) |
fix warning in fs/dlm/netlink.c
this warning:
fs/dlm/netlink.c: In function ‘dlm_timeout_warn’:
fs/dlm/netlink.c:131: warning: ‘send_skb’ may be used uninitialized in this function
triggers because GCC does not recognize the (correct) error flow
between prepare_data() and send_skb.
Annotate it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/dlm/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/netlink.c b/fs/dlm/netlink.c index 18bda83cc892..aa2a5775a027 100644 --- a/fs/dlm/netlink.c +++ b/fs/dlm/netlink.c | |||
@@ -127,8 +127,8 @@ static void fill_data(struct dlm_lock_data *data, struct dlm_lkb *lkb) | |||
127 | 127 | ||
128 | void dlm_timeout_warn(struct dlm_lkb *lkb) | 128 | void dlm_timeout_warn(struct dlm_lkb *lkb) |
129 | { | 129 | { |
130 | struct sk_buff *uninitialized_var(send_skb); | ||
130 | struct dlm_lock_data *data; | 131 | struct dlm_lock_data *data; |
131 | struct sk_buff *send_skb; | ||
132 | size_t size; | 132 | size_t size; |
133 | int rv; | 133 | int rv; |
134 | 134 | ||