From 00dcebdb41c109e998dec62c92f302e613be221b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 21 May 2009 10:57:20 +0000 Subject: [PATCH] Fixed bug that was introduced through the previous commit (r875): a warning message was printed by srpt_remove_one() when sdev != NULL instead of when sdev == NULL. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@876 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 05c45dfda..442e9cd5b 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2486,7 +2486,7 @@ static void srpt_remove_one(struct ib_device *device) struct srpt_device *sdev; sdev = ib_get_client_data(device, &srpt_client); - if (!WARN_ON(sdev)) + if (WARN_ON(!sdev)) return; wait_for_completion(&sdev->scst_released);