diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-03-20 10:08:25 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 10:08:25 -0800 |
commit | 6b63e3015a69dd8aa5534e23af9f132a021da02e (patch) | |
tree | 58c8ffeaf4a46e4ac5af98ebbaae7543c43561a9 /drivers/infiniband/core/mad.c | |
parent | IB: Coverity fixes to sysfs.c (diff) | |
download | linux-dev-6b63e3015a69dd8aa5534e23af9f132a021da02e.tar.xz linux-dev-6b63e3015a69dd8aa5534e23af9f132a021da02e.zip |
IB/mthca: Coverity fix to mthca_init_eq_table()
Fix bug found by coverity: the loop body never executed, because it
was doing for (i = 0; i < MTHCA_EQ_CMD; ++i), but MTHCA_EQ_CMD is 0.
The correct loop bound is MTHCA_NUM_EQ, to loop over all EQs.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/mad.c')
0 files changed, 0 insertions, 0 deletions