Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1390770 > unrolled thread

[PATCH] staging: rts5208: Avoid multiple assignment in one line

Started byManav Batra <batmanav10@gmail.com>
First post2016-04-29 07:50 +0200
Last post2016-04-30 02:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: rts5208: Avoid multiple assignment in one line Manav Batra <batmanav10@gmail.com> - 2016-04-29 07:50 +0200
    Re: [PATCH] staging: rts5208: Avoid multiple assignment in one line Greg KH <gregkh@linuxfoundation.org> - 2016-04-30 02:50 +0200

#1390770 — [PATCH] staging: rts5208: Avoid multiple assignment in one line

FromManav Batra <batmanav10@gmail.com>
Date2016-04-29 07:50 +0200
Subject[PATCH] staging: rts5208: Avoid multiple assignment in one line
Message-ID<rt9tn-KD-1@gated-at.bofh.it>
Signed-off-by: Manav Batra <batmanav10@gmail.com>

Separates out assignment in one line to two lines.
---
 drivers/staging/rts5208/rtsx.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c
index 25d095a..77c2580 100644
--- a/drivers/staging/rts5208/rtsx.c
+++ b/drivers/staging/rts5208/rtsx.c
@@ -105,13 +105,13 @@ static int slave_configure(struct scsi_device *sdev)
 	 * the actual value or the modified one, depending on where the
 	 * data comes from.
 	 */
-	if (sdev->scsi_level < SCSI_2)
-		sdev->scsi_level = sdev->sdev_target->scsi_level = SCSI_2;
-
+	if (sdev->scsi_level < SCSI_2) {
+		sdev->scsi_level  = SCSI_2;
+		sdev->sdev_target->scsi_level = SCSI_2;
+	}
 	return 0;
 }
 
-
 /***********************************************************************
  * /proc/scsi/ functions
  ***********************************************************************/
-- 
1.9.1

[toc] | [next] | [standalone]


#1391549

FromGreg KH <gregkh@linuxfoundation.org>
Date2016-04-30 02:50 +0200
Message-ID<rtrgC-7a9-9@gated-at.bofh.it>
In reply to#1390770
On Thu, Apr 28, 2016 at 10:42:07PM -0700, Manav Batra wrote:
> Signed-off-by: Manav Batra <batmanav10@gmail.com>
> 
> Separates out assignment in one line to two lines.

signed-off-by goes at the end of the text, not at the top.

Please fix all of these and resend.

thanks,

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web