diff options
author | David Teigland <teigland@redhat.com> | 2008-02-07 00:27:04 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2008-02-07 00:27:04 -0500 |
commit | d292c0cc489fa642799494bddbd7c94d11f7bbc1 (patch) | |
tree | 5999df751f987dc59ff052ed07fc7715c00898cc /fs/dlm/memory.c | |
parent | e5dae548b0b5397e070de793be925cfc5813ad95 (diff) |
dlm: eliminate astparam type casting
Put lkb_astparam in a union with a dlm_user_args pointer to
eliminate a lot of type casting.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/memory.c')
-rw-r--r-- | fs/dlm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/memory.c b/fs/dlm/memory.c index f7783867491..65e41e5569b 100644 --- a/fs/dlm/memory.c +++ b/fs/dlm/memory.c | |||
@@ -80,7 +80,7 @@ void dlm_free_lkb(struct dlm_lkb *lkb) | |||
80 | { | 80 | { |
81 | if (lkb->lkb_flags & DLM_IFL_USER) { | 81 | if (lkb->lkb_flags & DLM_IFL_USER) { |
82 | struct dlm_user_args *ua; | 82 | struct dlm_user_args *ua; |
83 | ua = (struct dlm_user_args *)lkb->lkb_astparam; | 83 | ua = lkb->lkb_ua; |
84 | if (ua) { | 84 | if (ua) { |
85 | if (ua->lksb.sb_lvbptr) | 85 | if (ua->lksb.sb_lvbptr) |
86 | kfree(ua->lksb.sb_lvbptr); | 86 | kfree(ua->lksb.sb_lvbptr); |