scsi: nsp32: Remove unnecessary self assignment in nsp32_set_sync_entry
Subsystems (2)
PATCH 1/1 scsi: nsp32: Remove unnecessary self assignment in nsp32_set_sync_entry
Clang warns:
drivers/scsi/nsp32.c:2444:14: warning: explicitly assigning value of variable of type 'unsigned char' to itself [-Wself-assign]
offset = offset;
~~~~~~ ^--- drivers/scsi/nsp32.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/nsp32.c +0 -1
@@ -2441,7 +2441,6 @@ static void nsp32_set_sync_entry(nsp32_hw_data *data, period = data->synct[entry].period_num; ackwidth = data->synct[entry].ackwidth; - offset = offset; sample_rate = data->synct[entry].sample_rate; target->syncreg =TO_SYNCREG (period, offset);
Signature · 1 line
2.20.0
Quoted 27 lines · Nathan Chancellor
Clang warns:
drivers/scsi/nsp32.c:2444:14: warning: explicitly assigning value of variable of type 'unsigned char' to itself [-Wself-assign]offset = offset; ~~~~~~ ^Signed-off-by Nathan Chancellor <[email protected]>--- drivers/scsi/nsp32.c | 1 - 1 file changed, 1 deletion(-)drivers/scsi/nsp32.c +0
-1@@ -2441,7 +2441,6 @@ static void nsp32_set_sync_entry(nsp32_hw_data *data, period = data->synct[entry].period_num; ackwidth = data->synct[entry].ackwidth; - offset = offset; sample_rate = data->synct[entry].sample_rate; target->syncreg =TO_SYNCREG (period, offset);Signature · 1 line
2.20.0
Ping?
Thanks for the fix!
2019年1月27日(日) 4:11 Nathan Chancellor <[email protected]>:
Quoted 10 lines · Nathan Chancellor
Quoted 8 lines
Clang warns:
drivers/scsi/nsp32.c:2444:14: warning: explicitly assigning value of variable of type 'unsigned char' to itself [-Wself-assign]offset = offset; ~~~~~~ ^Signed-off-by Nathan Chancellor <[email protected]>
Quoted 21 lines
Quoted 17 lines
--- drivers/scsi/nsp32.c | 1 - 1 file changed, 1 deletion(-)drivers/scsi/nsp32.c +0
-2@@ -2441,7 +2441,6 @@ static void nsp32_set_sync_entry(nsp32_hw_data *data, period = data->synct[entry].period_num; ackwidth = data->synct[entry].ackwidth; - offset = offset; sample_rate = data->synct[entry].sample_rate; target->syncreg =TO_SYNCREG (period, offset); --Quoted 2 lines
2.20.0
Ping?
Quoted 7 lines · Masanori Goto
Thanks for the fix!
2019年1月27日(日) 4:11 Nathan Chancellor <[email protected]>:
Quoted 4 lines · Nathan Chancellor
Quoted 2 lines
Clang warns:
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
drivers/scsi/nsp32.c:2444:14: warning: explicitly assigning value of variable of type 'unsigned char' to itself [-Wself-assign]offset = offset; ~~~~~~ ^Signed-off-by Nathan Chancellor <[email protected]>Acked-by GOTO Masanori <[email protected]>
Thank you for the reply and the review :)
Nathan
Quoted 22 lines
Quoted 22 lines
Quoted 18 lines
--- drivers/scsi/nsp32.c | 1 - 1 file changed, 1 deletion(-)drivers/scsi/nsp32.c +0
-2@@ -2441,7 +2441,6 @@ static void nsp32_set_sync_entry(nsp32_hw_data *data, period = data->synct[entry].period_num; ackwidth = data->synct[entry].ackwidth; - offset = offset; sample_rate = data->synct[entry].sample_rate; target->syncreg =TO_SYNCREG (period, offset); --Quoted 2 lines
2.20.0
Ping?
Martin K. Petersen
AppliedNathan,
Quoted 4 lines
Quoted 4 lines
drivers/scsi/nsp32.c:2444:14: warning: explicitly assigning value of variable of type 'unsigned char' to itself [-Wself-assign]offset = offset; ~~~~~~ ^
Applied to 5.1/scsi-queue. Thanks.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering