]> git.baikalelectronics.ru Git - kernel.git/commit
SRPT: Fix odd use of WARN_ON()
authorGrant Grundler <grundler@chromium.org>
Tue, 26 Mar 2013 21:48:28 +0000 (21:48 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 17 Apr 2013 05:58:08 +0000 (22:58 -0700)
commit2cb9387851b6e151b4eafe69ee5c8e7b7ad48591
tree4b231e7aae5c69a8adbf2ab2a5fc92219ea96681
parent3d34597d718ce53665fd0801124f99ffdab92e9b
SRPT: Fix odd use of WARN_ON()

While WARN_ON("const string") will work, it's intent is not obvious.
The warning is more useful by showing the "state" value.

Signed-off-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srpt/ib_srpt.c