summaryrefslogtreecommitdiff
path: root/fs/dlm/memory.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2008-02-06 23:27:04 -0600
committerDavid Teigland <teigland@redhat.com>2008-02-06 23:27:04 -0600
commitd292c0cc489fa642799494bddbd7c94d11f7bbc1 (patch)
tree5999df751f987dc59ff052ed07fc7715c00898cc /fs/dlm/memory.c
parente5dae548b0b5397e070de793be925cfc5813ad95 (diff)
downloadlinux-3.10-d292c0cc489fa642799494bddbd7c94d11f7bbc1.tar.gz
linux-3.10-d292c0cc489fa642799494bddbd7c94d11f7bbc1.tar.bz2
linux-3.10-d292c0cc489fa642799494bddbd7c94d11f7bbc1.zip
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.c2
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)
{
if (lkb->lkb_flags & DLM_IFL_USER) {
struct dlm_user_args *ua;
- ua = (struct dlm_user_args *)lkb->lkb_astparam;
+ ua = lkb->lkb_ua;
if (ua) {
if (ua->lksb.sb_lvbptr)
kfree(ua->lksb.sb_lvbptr);