Skip to content

Commit ce9a932

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: qla2xxx: Remove an unused function
This was detected by building the qla2xxx driver with clang. See also commit a908301 ("[SCSI] qla2xxx: Add ISP82XX support"). Link: https://lore.kernel.org/r/[email protected] Cc: Arun Easi <[email protected]> Cc: Nilesh Javali <[email protected]> Cc: Himanshu Madhani <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Daniel Wagner <[email protected]> Cc: Martin Wilck <[email protected]> Cc: Roman Bolshakov <[email protected]> Reviewed-by: Roman Bolshakov <[email protected]> Reviewed-by: Himanshu Madhani <[email protected]> Reviewed-by: Daniel Wagner <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 3ce4196 commit ce9a932

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

drivers/scsi/qla2xxx/qla_nx.c

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -380,47 +380,6 @@ qla82xx_pci_set_crbwindow_2M(struct qla_hw_data *ha, ulong off_in,
380380
*off_out = (off_in & MASK(16)) + CRB_INDIRECT_2M + ha->nx_pcibase;
381381
}
382382

383-
static inline unsigned long
384-
qla82xx_pci_set_crbwindow(struct qla_hw_data *ha, u64 off)
385-
{
386-
scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev);
387-
/* See if we are currently pointing to the region we want to use next */
388-
if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_DDR_NET)) {
389-
/* No need to change window. PCIX and PCIEregs are in both
390-
* regs are in both windows.
391-
*/
392-
return off;
393-
}
394-
395-
if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_PCIX_HOST2)) {
396-
/* We are in first CRB window */
397-
if (ha->curr_window != 0)
398-
WARN_ON(1);
399-
return off;
400-
}
401-
402-
if ((off > QLA82XX_CRB_PCIX_HOST2) && (off < QLA82XX_CRB_MAX)) {
403-
/* We are in second CRB window */
404-
off = off - QLA82XX_CRB_PCIX_HOST2 + QLA82XX_CRB_PCIX_HOST;
405-
406-
if (ha->curr_window != 1)
407-
return off;
408-
409-
/* We are in the QM or direct access
410-
* register region - do nothing
411-
*/
412-
if ((off >= QLA82XX_PCI_DIRECT_CRB) &&
413-
(off < QLA82XX_PCI_CAMQM_MAX))
414-
return off;
415-
}
416-
/* strange address given */
417-
ql_dbg(ql_dbg_p3p, vha, 0xb001,
418-
"%s: Warning: unm_nic_pci_set_crbwindow "
419-
"called with an unknown address(%llx).\n",
420-
QLA2XXX_DRIVER_NAME, off);
421-
return off;
422-
}
423-
424383
static int
425384
qla82xx_pci_get_crb_addr_2M(struct qla_hw_data *ha, ulong off_in,
426385
void __iomem **off_out)

0 commit comments

Comments
 (0)