diff mbox series

NFSD: remove NLM_F_MULTI flag in nfsd_genl_rpc_status_compose_msg

Message ID 3dd8abe7304ed6649e581bcaaaf61fc1278cb3e2.1696498541.git.lorenzo@kernel.org (mailing list archive)
State Not Applicable
Headers show
Series NFSD: remove NLM_F_MULTI flag in nfsd_genl_rpc_status_compose_msg | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Lorenzo Bianconi Oct. 5, 2023, 9:38 a.m. UTC
Get rid of unnecessary NLM_F_MULTI flag in nfsd_genl_rpc_status_compose_msg
routine

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
 fs/nfsd/nfsctl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Chuck Lever III Oct. 5, 2023, 12:33 p.m. UTC | #1
On Thu, Oct 05, 2023 at 11:38:17AM +0200, Lorenzo Bianconi wrote:
> Get rid of unnecessary NLM_F_MULTI flag in nfsd_genl_rpc_status_compose_msg
> routine
> 
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
>  fs/nfsd/nfsctl.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Squashed. Thanks!


> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
> index b71744e355a8..739ed5bf71cd 100644
> --- a/fs/nfsd/nfsctl.c
> +++ b/fs/nfsd/nfsctl.c
> @@ -1527,8 +1527,7 @@ static int nfsd_genl_rpc_status_compose_msg(struct sk_buff *skb,
>  	u32 i;
>  
>  	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
> -			  &nfsd_nl_family, NLM_F_MULTI,
> -			  NFSD_CMD_RPC_STATUS_GET);
> +			  &nfsd_nl_family, 0, NFSD_CMD_RPC_STATUS_GET);
>  	if (!hdr)
>  		return -ENOBUFS;
>  
> -- 
> 2.41.0
>
diff mbox series

Patch

diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index b71744e355a8..739ed5bf71cd 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -1527,8 +1527,7 @@  static int nfsd_genl_rpc_status_compose_msg(struct sk_buff *skb,
 	u32 i;
 
 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
-			  &nfsd_nl_family, NLM_F_MULTI,
-			  NFSD_CMD_RPC_STATUS_GET);
+			  &nfsd_nl_family, 0, NFSD_CMD_RPC_STATUS_GET);
 	if (!hdr)
 		return -ENOBUFS;