From: Bob Peterson Date: Mon, 26 Jun 2023 15:55:52 +0000 (-0500) Subject: gfs2: Simplify qd2offset X-Git-Tag: v6.6-rc1~46^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f190c97a4f559bc7e8db739026ebb2d0f53ebed;p=thirdparty%2Fkernel%2Flinux.git gfs2: Simplify qd2offset This is a minor cleanup of function qd2offset. Signed-off-by: Bob Peterson Signed-off-by: Andreas Gruenbacher --- diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index aba8d31a9a7fd..d45a3a1ed9fe7 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -213,12 +213,7 @@ static u64 qd2index(struct gfs2_quota_data *qd) static u64 qd2offset(struct gfs2_quota_data *qd) { - u64 offset; - - offset = qd2index(qd); - offset *= sizeof(struct gfs2_quota); - - return offset; + return qd2index(qd) * sizeof(struct gfs2_quota); } static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid)