[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CO6PR10MB56353FD77836D5605CDDB8DEDD769@CO6PR10MB5635.namprd10.prod.outlook.com>
Date: Wed, 15 Dec 2021 07:05:58 +0000
From: Devesh Sharma <devesh.s.sharma@...cle.com>
To: "cgel.zte@...il.com" <cgel.zte@...il.com>,
"zyjzyj2000@...il.com" <zyjzyj2000@...il.com>
CC: "dledford@...hat.com" <dledford@...hat.com>,
"jgg@...pe.ca" <jgg@...pe.ca>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Minghao Chi <chi.minghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: RE: [External] : [PATCH infiniband-next] drivers/infiniband: remove
redundant err variable
> -----Original Message-----
> From: cgel.zte@...il.com <cgel.zte@...il.com>
> Sent: Wednesday, December 15, 2021 11:36 AM
> To: zyjzyj2000@...il.com
> Cc: dledford@...hat.com; jgg@...pe.ca; linux-rdma@...r.kernel.org; linux-
> kernel@...r.kernel.org; Minghao Chi <chi.minghao@....com.cn>; Zeal
> Robot <zealci@....com.cn>
> Subject: [External] : [PATCH infiniband-next] drivers/infiniband: remove
Change the subject line
[PATCH for-next] RDMA/rxe: ....
> redundant err variable
>
> From: Minghao Chi <chi.minghao@....com.cn>
>
> Return value directly instead of taking this in another redundant variable.
>
> Reported-by: Zeal Robot <zealci@....com.cn>
> Signed-off-by: Minghao Chi <chi.minghao@....com.cn>
> ---
> drivers/infiniband/sw/rxe/rxe_net.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/infiniband/sw/rxe/rxe_net.c
> b/drivers/infiniband/sw/rxe/rxe_net.c
> index 2cb810cb890a..f557150bd59a 100644
> --- a/drivers/infiniband/sw/rxe/rxe_net.c
> +++ b/drivers/infiniband/sw/rxe/rxe_net.c
> @@ -22,24 +22,20 @@ static struct rxe_recv_sockets recv_sockets;
>
> int rxe_mcast_add(struct rxe_dev *rxe, union ib_gid *mgid) {
> - int err;
> unsigned char ll_addr[ETH_ALEN];
>
> ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr);
> - err = dev_mc_add(rxe->ndev, ll_addr);
>
> - return err;
> + return dev_mc_add(rxe->ndev, ll_addr);
> }
>
> int rxe_mcast_delete(struct rxe_dev *rxe, union ib_gid *mgid) {
> - int err;
> unsigned char ll_addr[ETH_ALEN];
>
> ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr);
> - err = dev_mc_del(rxe->ndev, ll_addr);
>
> - return err;
> + return dev_mc_del(rxe->ndev, ll_addr);
> }
>
> static struct dst_entry *rxe_find_route4(struct net_device *ndev,
> --
> 2.25.1
Powered by blists - more mailing lists