Skip to content

Commit 7818cf3

Browse files
YueHaibinggregkh
authored andcommitted
SUNRPC: drop pointless static qualifier in xdr_get_next_encode_buffer()
[ Upstream commit 025911a ] There is no need to have the '__be32 *p' variable static since new value always be assigned before use it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 62b5dea commit 7818cf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/sunrpc/xdr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ EXPORT_SYMBOL_GPL(xdr_commit_encode);
512512
static __be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr,
513513
size_t nbytes)
514514
{
515-
static __be32 *p;
515+
__be32 *p;
516516
int space_left;
517517
int frag1bytes, frag2bytes;
518518

0 commit comments

Comments
 (0)