summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/nsp32.c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-12-11 00:51:56 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-01-29 07:26:57 +0100
commitc9c1df3e8c9d323a4045ef3db72e388d40609bba (patch)
treee7c3b98e879b41d4c29b6aa28150a8d7cee93e11 /drivers/scsi/nsp32.c
parentscsi: prefix header search paths with $(srctree)/ (diff)
downloadlinux-c9c1df3e8c9d323a4045ef3db72e388d40609bba.tar.xz
linux-c9c1df3e8c9d323a4045ef3db72e388d40609bba.zip
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; ~~~~~~ ^ Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Acked-by: GOTO Masanori <gotom@debian.or.jp> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/nsp32.c')
-rw-r--r--drivers/scsi/nsp32.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
index 00e3cbee55b8..da4d6e1106c4 100644
--- a/drivers/scsi/nsp32.c
+++ b/drivers/scsi/nsp32.c
@@ -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);