IB/mad: Remove improper use of BUG_ON
authorIra Weiny <ira.weiny@intel.com>
Thu, 25 Jun 2015 13:52:50 +0000 (09:52 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Jul 2015 17:20:08 +0000 (13:20 -0400)
commit3b8ab700af0a5c5e59c833f8a88f94b97499f5e5
tree61c9df6b14a335d7feb9853a629b63645095c180
parentcd4cd565e049c6e734a12754d91d1142c25f6a64
IB/mad: Remove improper use of BUG_ON

We recently added BUG_ON's which were inappropriate for a condition which
should never happen. Change these to be WARN_ON_ONCE as a debugging aid.

Fixes: 4cd7c9479aff ('IB/mad: Add support for additional MAD info to/from drivers')

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ehca/ehca_sqp.c
drivers/infiniband/hw/ipath/ipath_mad.c
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx5/mad.c
drivers/infiniband/hw/mthca/mthca_mad.c
drivers/infiniband/hw/ocrdma/ocrdma_ah.c
drivers/infiniband/hw/qib/qib_mad.c