IB/core: Reduce the places that use zgid
authorParav Pandit <parav@mellanox.com>
Tue, 22 May 2018 17:33:45 +0000 (20:33 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 May 2018 15:39:25 +0000 (09:39 -0600)
commit25e62655c79395c596601a35805c3c7376d097b6
tree6862f5ec7948886e016466757c41c06b02758874
parent7b74a83cf54a3747e22c57e25712bd70eef8acee
IB/core: Reduce the places that use zgid

Instead of open coding memcmp() to check whether a given GID is zero or
not, use a helper function to do so, and replace instances of
memcpy(z,&zgid) with memset.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cache.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/qp.c
include/rdma/ib_cache.h