diff options
author | David Teigland <teigland@redhat.com> | 2006-04-27 11:25:45 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-27 11:25:45 -0400 |
commit | e7f5c01caddbad150dcf003f76cd5aac413f4c50 (patch) | |
tree | a37538fc8c067fb169110ccba9788302cdace1d2 /fs/gfs2/glock.c | |
parent | 6bd70aba5ab453459bb53b1e29f0e0650d6c311f (diff) |
[GFS2] Remove redundant casts to/from void
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r-- | fs/gfs2/glock.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 67e3f2a4d109..17d474fab5ab 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -1348,7 +1348,7 @@ void gfs2_glock_force_drop(struct gfs2_glock *gl) | |||
1348 | 1348 | ||
1349 | static void greedy_work(void *data) | 1349 | static void greedy_work(void *data) |
1350 | { | 1350 | { |
1351 | struct greedy *gr = (struct greedy *)data; | 1351 | struct greedy *gr = data; |
1352 | struct gfs2_holder *gh = &gr->gr_gh; | 1352 | struct gfs2_holder *gh = &gr->gr_gh; |
1353 | struct gfs2_glock *gl = gh->gh_gl; | 1353 | struct gfs2_glock *gl = gh->gh_gl; |
1354 | struct gfs2_glock_operations *glops = gl->gl_ops; | 1354 | struct gfs2_glock_operations *glops = gl->gl_ops; |
@@ -1745,19 +1745,19 @@ void gfs2_glock_cb(lm_fsdata_t *fsdata, unsigned int type, void *data) | |||
1745 | 1745 | ||
1746 | switch (type) { | 1746 | switch (type) { |
1747 | case LM_CB_NEED_E: | 1747 | case LM_CB_NEED_E: |
1748 | blocking_cb(sdp, (struct lm_lockname *)data, LM_ST_UNLOCKED); | 1748 | blocking_cb(sdp, data, LM_ST_UNLOCKED); |
1749 | return; | 1749 | return; |
1750 | 1750 | ||
1751 | case LM_CB_NEED_D: | 1751 | case LM_CB_NEED_D: |
1752 | blocking_cb(sdp, (struct lm_lockname *)data, LM_ST_DEFERRED); | 1752 | blocking_cb(sdp, data, LM_ST_DEFERRED); |
1753 | return; | 1753 | return; |
1754 | 1754 | ||
1755 | case LM_CB_NEED_S: | 1755 | case LM_CB_NEED_S: |
1756 | blocking_cb(sdp, (struct lm_lockname *)data, LM_ST_SHARED); | 1756 | blocking_cb(sdp, data, LM_ST_SHARED); |
1757 | return; | 1757 | return; |
1758 | 1758 | ||
1759 | case LM_CB_ASYNC: { | 1759 | case LM_CB_ASYNC: { |
1760 | struct lm_async_cb *async = (struct lm_async_cb *)data; | 1760 | struct lm_async_cb *async = data; |
1761 | struct gfs2_glock *gl; | 1761 | struct gfs2_glock *gl; |
1762 | 1762 | ||
1763 | gl = gfs2_glock_find(sdp, &async->lc_name); | 1763 | gl = gfs2_glock_find(sdp, &async->lc_name); |
@@ -1766,7 +1766,6 @@ void gfs2_glock_cb(lm_fsdata_t *fsdata, unsigned int type, void *data) | |||
1766 | if (!gfs2_assert_warn(sdp, gl->gl_req_bh)) | 1766 | if (!gfs2_assert_warn(sdp, gl->gl_req_bh)) |
1767 | gl->gl_req_bh(gl, async->lc_ret); | 1767 | gl->gl_req_bh(gl, async->lc_ret); |
1768 | gfs2_glock_put(gl); | 1768 | gfs2_glock_put(gl); |
1769 | |||
1770 | return; | 1769 | return; |
1771 | } | 1770 | } |
1772 | 1771 | ||