Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346089
b: refs/heads/master
c: d0fa7fd
h: refs/heads/master
i:
  346087: a0c9722
v: v3
  • Loading branch information
Andreas Gruenbacher authored and Philipp Reisner committed Nov 8, 2012
1 parent 739268e commit 4055582
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afbbfa88bc506bc13b957c3811bce299de1d31d5
refs/heads/master: d0fa7fd680a56a3fd52817fe93c1c8abe7164ef1
12 changes: 0 additions & 12 deletions trunk/drivers/block/drbd/drbd_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ static int drbd_adm_prepare(struct sk_buff *skb, struct genl_info *info,

static int drbd_adm_finish(struct genl_info *info, int retcode)
{
struct nlattr *nla;
const char *resource_name = NULL;

if (adm_ctx.tconn) {
kref_put(&adm_ctx.tconn->kref, &conn_destroy);
adm_ctx.tconn = NULL;
Expand All @@ -285,15 +282,6 @@ static int drbd_adm_finish(struct genl_info *info, int retcode)
return -ENOMEM;

adm_ctx.reply_dh->ret_code = retcode;

nla = info->attrs[DRBD_NLA_CFG_CONTEXT];
if (nla) {
int maxtype = ARRAY_SIZE(drbd_cfg_context_nl_policy) - 1;
nla = drbd_nla_find_nested(maxtype, nla, __nla_type(T_ctx_resource_name));
if (nla && !IS_ERR(nla))
resource_name = nla_data(nla);
}

drbd_adm_send_reply(adm_ctx.reply_skb, info);
return 0;
}
Expand Down

0 comments on commit 4055582

Please sign in to comment.