Commit 4b7ee678 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Doug Ledford

RDMA/nes: Remove zeroed parameter from port query callback

There is no need to explicitly zero parameters, because
the structure requested to be filled already initialized to zeros.
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 17bf1ad2
...@@ -481,21 +481,16 @@ static int nes_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr ...@@ -481,21 +481,16 @@ static int nes_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr
props->active_mtu = ib_mtu_int_to_enum(netdev->mtu); props->active_mtu = ib_mtu_int_to_enum(netdev->mtu);
props->lid = 1; props->lid = 1;
props->lmc = 0;
props->sm_lid = 0;
props->sm_sl = 0;
if (netif_queue_stopped(netdev)) if (netif_queue_stopped(netdev))
props->state = IB_PORT_DOWN; props->state = IB_PORT_DOWN;
else if (nesvnic->linkup) else if (nesvnic->linkup)
props->state = IB_PORT_ACTIVE; props->state = IB_PORT_ACTIVE;
else else
props->state = IB_PORT_DOWN; props->state = IB_PORT_DOWN;
props->phys_state = 0;
props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP |
IB_PORT_VENDOR_CLASS_SUP | IB_PORT_BOOT_MGMT_SUP; IB_PORT_VENDOR_CLASS_SUP | IB_PORT_BOOT_MGMT_SUP;
props->gid_tbl_len = 1; props->gid_tbl_len = 1;
props->pkey_tbl_len = 1; props->pkey_tbl_len = 1;
props->qkey_viol_cntr = 0;
props->active_width = IB_WIDTH_4X; props->active_width = IB_WIDTH_4X;
props->active_speed = IB_SPEED_SDR; props->active_speed = IB_SPEED_SDR;
props->max_msg_sz = 0x80000000; props->max_msg_sz = 0x80000000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment