]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Fix sparse warning in nfs4proc.c
authorChuck Lever <chuck.lever@oracle.com>
Mon, 30 Nov 2020 21:17:40 +0000 (16:17 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 9 Dec 2020 14:38:34 +0000 (09:38 -0500)
commit1a129bf3c47c18948755f63a46bae2f3629a2cad
treeb5049f8f757098bb8153c25ca10dfd24df06b639
parentb1f693946a2e1fe8cd7117012fa019253a816f22
NFSD: Fix sparse warning in nfs4proc.c

linux/fs/nfsd/nfs4proc.c:1542:24: warning: incorrect type in assignment (different base types)
linux/fs/nfsd/nfs4proc.c:1542:24:    expected restricted __be32 [assigned] [usertype] status
linux/fs/nfsd/nfs4proc.c:1542:24:    got int

Clean-up: The dup_copy_fields() function returns only zero, so make
it return void for now, and get rid of the return code check.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c