> -----Original Message----- > From: linux-rdma-owner@xxxxxxxxxxxxxxx <linux-rdma- > owner@xxxxxxxxxxxxxxx> On Behalf Of Leon Romanovsky > Sent: Wednesday, February 20, 2019 1:22 AM > To: David Ahern <dsahern@xxxxxxxxx> > Cc: Leon Romanovsky <leonro@xxxxxxxxxxxx>; netdev > <netdev@xxxxxxxxxxxxxxx>; RDMA mailing list <linux- > rdma@xxxxxxxxxxxxxxx>; Stephen Hemminger > <stephen@xxxxxxxxxxxxxxxxxx> > Subject: [PATCH iproute2-next v1 17/19] rdma: Unify netlink attribute checks > prior to prints > > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > Place check if netlink attribute available in general place, > instead of doing the same check in many paces. > > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > rdma/res-cmid.c | 9 ++++----- > rdma/res-cq.c | 22 +++++++++++----------- > rdma/res-mr.c | 21 +++++++-------------- > rdma/res-pd.c | 20 +++++++++----------- > rdma/res-qp.c | 10 +++++----- > rdma/res.c | 16 +++++++++++++--- > rdma/res.h | 6 ++++-- > 7 files changed, 53 insertions(+), 51 deletions(-) Reviewed-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx>