Skip to content

Commit b296393

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: Remove return value for gfs2_indirect_init
The return value from function gfs2_indirect_init is never used, so remove it. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent a4e8145 commit b296393

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

fs/gfs2/bmap.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,9 @@ static int gfs2_hole_size(struct inode *inode, sector_t lblock, u64 len,
606606
return ret;
607607
}
608608

609-
static inline __be64 *gfs2_indirect_init(struct metapath *mp,
610-
struct gfs2_glock *gl, unsigned int i,
611-
unsigned offset, u64 bn)
609+
static inline void gfs2_indirect_init(struct metapath *mp,
610+
struct gfs2_glock *gl, unsigned int i,
611+
unsigned offset, u64 bn)
612612
{
613613
__be64 *ptr = (__be64 *)(mp->mp_bh[i - 1]->b_data +
614614
((i > 1) ? sizeof(struct gfs2_meta_header) :
@@ -621,7 +621,6 @@ static inline __be64 *gfs2_indirect_init(struct metapath *mp,
621621
gfs2_buffer_clear_tail(mp->mp_bh[i], sizeof(struct gfs2_meta_header));
622622
ptr += offset;
623623
*ptr = cpu_to_be64(bn);
624-
return ptr;
625624
}
626625

627626
enum alloc_state {

0 commit comments

Comments
 (0)