]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: remove redundant inner check of mdev->mthca_flags
authorColin Ian King <colin.king@canonical.com>
Wed, 26 Sep 2018 12:26:08 +0000 (13:26 +0100)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 26 Sep 2018 22:34:11 +0000 (16:34 -0600)
commit848fac279fbd3efbeeb4d206b01c40a30587d854
tree0c7a04ab9d21e514adf12e57b82607c23afc5290
parent06f72b2a0bb1201e109511bb85f5f94bff7c55a7
IB/mthca: remove redundant inner check of mdev->mthca_flags

The inner check for mdev->mthca_flags & MTHCA_FLAG_MSI_X is redundant
as this is already true because of the previous identical check in
an outer if statement.  Remove it

Detected by cppcheck:
(warning) Identical inner 'if' condition is always true.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mthca/mthca_main.c