Re: [PATCH for-next] RDMA/rxe: Remove useless code in rxe_recv.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 27, 2021 at 04:42:04PM -0600, Bob Pearson wrote:
> In check_keys() in rxe_recv.c
> 
> 	if ((...) && pkt->mask) {
> 		...
> 	}
> 
> always has pkt->mask non zero since in rxe_udp_encap_recv()
> pkt->mask is always set to RXE_GRH_MASK (!= 0).  There is no obvious
> reason for this additional test and the original intent is
> lost. This patch simplifies the expression.
> 
> Fixes: 8b7b59d030cc0 ("IB/rxe: remove redudant qpn check")
> Signed-off-by: Bob Pearson <rpearson@xxxxxxx>
> ---
>  drivers/infiniband/sw/rxe/rxe_recv.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied to for-next, thanks

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux