mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user