* [PATCH] mpt2sas: remove unecessary if statement
@ 2011-06-06 0:45 Greg Dietsche
0 siblings, 0 replies; only message in thread
From: Greg Dietsche @ 2011-06-06 0:45 UTC (permalink / raw)
To: JBottomley; +Cc: linux-scsi, linux-kernel, Greg Dietsche
the code always returns r regardless, so if(r) check is unecessary.
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-06 0:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06 0:45 [PATCH] mpt2sas: remove unecessary if statement Greg Dietsche
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).