projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b0795
)
staging: rts5208: rtsx.c: Multiple assignments
author
Wayne Porter
<wporter82@gmail.com>
Tue, 11 Oct 2016 21:56:47 +0000
(21:56 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:27:05 +0000
(10:27 +0200)
Fix multiple assignments found by checkpatch
Signed-off-by: Wayne Porter <wporter82@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts5208/rtsx.c
b/drivers/staging/rts5208/rtsx.c
index 5d10182ffb81f09b9248be5d2cbc4a64765d9d22..c88200be918ab784d14b7b1227d57a288204a4fb 100644
(file)
--- 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;
}