mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
IB/rxe: Remove unneeded check
Port validation is performed in ib_core, no need to duplicate it here. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
8b62cbd13a
commit
660b1de13c
1 changed files with 0 additions and 5 deletions
|
@ -38,11 +38,6 @@ int rxe_av_chk_attr(struct rxe_dev *rxe, struct rdma_ah_attr *attr)
|
||||||
{
|
{
|
||||||
struct rxe_port *port;
|
struct rxe_port *port;
|
||||||
|
|
||||||
if (rdma_ah_get_port_num(attr) != 1) {
|
|
||||||
pr_info("invalid port_num = %d\n", rdma_ah_get_port_num(attr));
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
port = &rxe->port;
|
port = &rxe->port;
|
||||||
|
|
||||||
if (rdma_ah_get_ah_flags(attr) & IB_AH_GRH) {
|
if (rdma_ah_get_ah_flags(attr) & IB_AH_GRH) {
|
||||||
|
|
Loading…
Reference in a new issue