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
This commit is contained in:
Bart Van Assche
2009-05-21 10:57:20 +00:00
parent b2d0960b57
commit 00dcebdb41

View File

@@ -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);