Skip to content

Commit

Permalink
staging: slicoss: Fix three checkpatch.pl errors in slicoss.c
Browse files Browse the repository at this point in the history
The errors fixed are all instances of
"ERROR: do not use assignment in if condition"

Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Cruz Julian Bishop authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent 7864a0a commit 83682cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/staging/slicoss/slicoss.c
Original file line number Diff line number Diff line change
Expand Up @@ -2930,11 +2930,14 @@ static int slic_if_init(struct adapter *adapter)
}

if (!adapter->queues_initialized) {
if ((rc = slic_rspqueue_init(adapter)))
rc = slic_rspqueue_init(adapter);
if (rc)
goto err;
if ((rc = slic_cmdq_init(adapter)))
rc = slic_cmdq_init(adapter);
if (rc)
goto err;
if ((rc = slic_rcvqueue_init(adapter)))
rc = slic_rcvqueue_init(adapter);
if (rc)
goto err;
adapter->queues_initialized = 1;
}
Expand Down

0 comments on commit 83682cd

Please sign in to comment.