Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: bfa: Remove set but not used variable 'fchs'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/bfa/bfa_svc.c: In function 'uf_recv':
drivers/scsi/bfa/bfa_svc.c:5520:17: warning:
variable 'fchs' set but not used [-Wunused-but-set-variable]
struct fchs_s *fchs;
^

Link: https://lore.kernel.org/r/20200418071057.96699-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

YueHaibing and committed by
Martin K. Petersen
0745c834 6942d531

-3
-3
drivers/scsi/bfa/bfa_svc.c
··· 5517 5517 struct bfa_uf_s *uf = &ufm->uf_list[uf_tag]; 5518 5518 struct bfa_uf_buf_s *uf_buf; 5519 5519 uint8_t *buf; 5520 - struct fchs_s *fchs; 5521 5520 5522 5521 uf_buf = (struct bfa_uf_buf_s *) 5523 5522 bfa_mem_get_dmabuf_kva(ufm, uf_tag, uf->pb_len); ··· 5524 5525 5525 5526 m->frm_len = be16_to_cpu(m->frm_len); 5526 5527 m->xfr_len = be16_to_cpu(m->xfr_len); 5527 - 5528 - fchs = (struct fchs_s *)uf_buf; 5529 5528 5530 5529 list_del(&uf->qe); /* dequeue from posted queue */ 5531 5530