Skip to content

Commit

Permalink
sunrpc: svc: Remove an unused static function svc_ungetu32()
Browse files Browse the repository at this point in the history
The svc_ungetu32 function is not used, you could remove it.

Signed-off-by: Li zeming <zeming@nfschina.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
  • Loading branch information
Li zeming authored and Chuck Lever committed Dec 10, 2022
1 parent 22ae4c1 commit 3ed157d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/linux/sunrpc/svc.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,6 @@ static inline __be32 svc_getu32(struct kvec *iov)
return val;
}

static inline void svc_ungetu32(struct kvec *iov)
{
__be32 *vp = (__be32 *)iov->iov_base;
iov->iov_base = (void *)(vp - 1);
iov->iov_len += sizeof(*vp);
}

static inline void svc_putu32(struct kvec *iov, __be32 val)
{
__be32 *vp = iov->iov_base + iov->iov_len;
Expand Down

0 comments on commit 3ed157d

Please sign in to comment.