Fix multiple assignments found by checkpatch

Signed-off-by: Wayne Porter <[email protected]>
---
 drivers/staging/rts5208/rtsx.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c
index 5d10182..c88200b 100644
--- a/drivers/staging/rts5208/rtsx.c
+++ b/drivers/staging/rts5208/rtsx.c
@@ -107,8 +107,10 @@ 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;
 }
-- 
2.1.4

Reply via email to