linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: mvsas: fix indenting on return error code
@ 2016-01-05 11:56 Colin King
  2016-01-05 12:35 ` Tomas Henzl
  2016-01-06 20:29 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2016-01-05 11:56 UTC (permalink / raw)
  To: James Bottomley, Martin K . Petersen, Tomas Henzl,
	Johannes Thumshirn, linux-scsi
  Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The return code and error return is incorrectly indented which
may cause some confusion as it appears at first sight to be associated
with a device not ready error (with missing { } braces) rather than
a DEV_IS_GONE() failure.

The incorrect indenting was introduced by commit
0b15fb1fdfd403726542cb6111bc916b7a9f7fad ("[SCSI] mvsas: add support
for Task collector mode and fixed relative bugs")

No functional change, just a minor code reformatting clean up.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/scsi/mvsas/mv_sas.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c
index 9c78074..e712fe7 100644
--- a/drivers/scsi/mvsas/mv_sas.c
+++ b/drivers/scsi/mvsas/mv_sas.c
@@ -737,8 +737,8 @@ static int mvs_task_prep(struct sas_task *task, struct mvs_info *mvi, int is_tmf
 			mv_dprintk("device %016llx not ready.\n",
 				SAS_ADDR(dev->sas_addr));
 
-			rc = SAS_PHY_DOWN;
-			return rc;
+		rc = SAS_PHY_DOWN;
+		return rc;
 	}
 	tei.port = dev->port->lldd_port;
 	if (tei.port && !tei.port->port_attached && !tmf) {
-- 
2.6.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: mvsas: fix indenting on return error code
  2016-01-05 11:56 [PATCH] scsi: mvsas: fix indenting on return error code Colin King
@ 2016-01-05 12:35 ` Tomas Henzl
  2016-01-06 20:29 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Tomas Henzl @ 2016-01-05 12:35 UTC (permalink / raw)
  To: Colin King, James Bottomley, Martin K . Petersen,
	Johannes Thumshirn, linux-scsi
  Cc: linux-kernel

On 5.1.2016 12:56, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The return code and error return is incorrectly indented which
> may cause some confusion as it appears at first sight to be associated
> with a device not ready error (with missing { } braces) rather than
> a DEV_IS_GONE() failure.
>
> The incorrect indenting was introduced by commit
> 0b15fb1fdfd403726542cb6111bc916b7a9f7fad ("[SCSI] mvsas: add support
> for Task collector mode and fixed relative bugs")
>
> No functional change, just a minor code reformatting clean up.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Tomas


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: mvsas: fix indenting on return error code
  2016-01-05 11:56 [PATCH] scsi: mvsas: fix indenting on return error code Colin King
  2016-01-05 12:35 ` Tomas Henzl
@ 2016-01-06 20:29 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2016-01-06 20:29 UTC (permalink / raw)
  To: Colin King
  Cc: James Bottomley, Martin K . Petersen, Tomas Henzl,
	Johannes Thumshirn, linux-scsi, linux-kernel

>>>>> "Colin" == Colin King <colin.king@canonical.com> writes:

Colin,

Colin> The return code and error return is incorrectly indented which
Colin> may cause some confusion as it appears at first sight to be
Colin> associated with a device not ready error (with missing { }
Colin> braces) rather than a DEV_IS_GONE() failure.

This problem has already been addressed:

https://git.kernel.org/cgit/linux/kernel/git/mkp/scsi.git/commit/?h=4.5/scsi-queue&id=7789cd39274c

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-06 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05 11:56 [PATCH] scsi: mvsas: fix indenting on return error code Colin King
2016-01-05 12:35 ` Tomas Henzl
2016-01-06 20:29 ` Martin K. Petersen

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).