[PATCH] mpt2sas: remove unecessary if statement

From: Greg Dietsche
Date: Sun Jun 05 2011 - 20:45:55 EST


the code always returns r regardless, so if(r) check is unecessary.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@xxxxxxx>
---
drivers/scsi/mpt2sas/mpt2sas_base.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c
index efa0255..26577ef 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_base.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.c
@@ -3796,9 +3796,6 @@ _base_make_ioc_operational(struct MPT2SAS_ADAPTER *ioc, int sleep_flag)
}

r = _base_send_port_enable(ioc, sleep_flag);
- if (r)
- return r;
-
return r;
}

--
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/