diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-07-09 07:23:26 -0700 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-08-26 10:34:49 -0700 |
commit | 52c82823cc686d4faf9e9bc4feec4bf48c36fded (patch) | |
tree | 1f78a3ca7cb7be4e3e29b11d74459c41a4891990 /drivers/scsi/qla2xxx/qla_tmpl.c | |
parent | 2374dd238c287fb7a370b53aad2dbc4c8f0c241c (diff) | |
download | op-kernel-dev-52c82823cc686d4faf9e9bc4feec4bf48c36fded.zip op-kernel-dev-52c82823cc686d4faf9e9bc4feec4bf48c36fded.tar.gz |
qla2xxx: Remove set-but-not-used variables
Detected these variables by building with W=1.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_tmpl.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_tmpl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c index 962cb89..7e876d1 100644 --- a/drivers/scsi/qla2xxx/qla_tmpl.c +++ b/drivers/scsi/qla2xxx/qla_tmpl.c @@ -805,9 +805,8 @@ static void qla27xx_driver_info(struct qla27xx_fwdt_template *tmp) { uint8_t v[] = { 0, 0, 0, 0, 0, 0 }; - int rval = 0; - rval = sscanf(qla2x00_version_str, "%hhu.%hhu.%hhu.%hhu.%hhu.%hhu", + sscanf(qla2x00_version_str, "%hhu.%hhu.%hhu.%hhu.%hhu.%hhu", v+0, v+1, v+2, v+3, v+4, v+5); tmp->driver_info[0] = v[3] << 24 | v[2] << 16 | v[1] << 8 | v[0]; |