OSDN Git Service

iser-target: Remove redundant check on the device
authorSagi Grimberg <sagig@mellanox.com>
Sun, 29 Mar 2015 12:52:17 +0000 (15:52 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:56 +0000 (23:27 -0700)
commit57df81e3b1bc7e65f48c2146ba1b3affbd709d5c
treebba9683ccaf3c794dc29f0d926c8e5fe459d6e42
parentc6b8e9180de76624d0a01148d6edd0107edebed1
iser-target: Remove redundant check on the device

In iser_connect_release there is no chance that
the iser device is set to NULL, if this happens
we have a BUG. So use BUG_ON.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c