From: Cruz Julian Bishop Date: Mon, 14 Jan 2013 02:29:08 +0000 (+1000) Subject: staging: slicoss: Fix three checkpatch.pl errors in slicoss.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=83682cd2fede86c064abac691a5a7091671cfed6;p=linux-beck.git staging: slicoss: Fix three checkpatch.pl errors in slicoss.c The errors fixed are all instances of "ERROR: do not use assignment in if condition" Signed-off-by: Cruz Julian Bishop Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 5aa03eed0722..b6b99a3e23cb 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -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; }