Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 314505 Details for
Bug 459449
[Qlogic 5.4] qla4xxx: Remove Dead/Unused code from driver
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Remove Dead Code
patch.deadcode (text/plain), 3.93 KB, created by
David Somayajulu
on 2008-08-19 00:40:12 UTC
(
hide
)
Description:
Remove Dead Code
Filename:
MIME Type:
Creator:
David Somayajulu
Created:
2008-08-19 00:40:12 UTC
Size:
3.93 KB
patch
obsolete
>--- linux-2.6.18.noarch/drivers/scsi/qla4xxx/ql4_iocb.c 2008-08-18 15:38:50.000000000 -0700 >+++ linux-2.6.18.noarch.test/drivers/scsi/qla4xxx/ql4_iocb.c 2008-08-18 17:11:30.000000000 -0700 >@@ -101,135 +101,6 @@ exit_send_marker: > return status; > } > >-struct pdu_entry * qla4xxx_get_pdu(struct scsi_qla_host * ha, uint32_t length) >-{ >- struct pdu_entry *pdu; >- struct pdu_entry *free_pdu_top; >- struct pdu_entry *free_pdu_bottom; >- uint16_t pdu_active; >- >- if (ha->free_pdu_top == NULL) >- return NULL; >- >- /* Save current state */ >- free_pdu_top = ha->free_pdu_top; >- free_pdu_bottom = ha->free_pdu_bottom; >- pdu_active = ha->pdu_active + 1; >- >- /* get next available pdu */ >- pdu = free_pdu_top; >- free_pdu_top = pdu->Next; >- if (free_pdu_top == NULL) >- free_pdu_bottom = NULL; >- >- /* round up to nearest page */ >- length = (length + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); >- >- /* Allocate pdu buffer PDU */ >- pdu->Buff = dma_alloc_coherent(&ha->pdev->dev, length, &pdu->DmaBuff, >- GFP_KERNEL); >- if (pdu->Buff == NULL) >- return NULL; >- >- memset(pdu->Buff, 0, length); >- >- /* Fill in remainder of PDU */ >- pdu->BuffLen = length; >- pdu->SendBuffLen = 0; >- pdu->RecvBuffLen = 0; >- pdu->Next = NULL; >- ha->free_pdu_top = free_pdu_top; >- ha->free_pdu_bottom = free_pdu_bottom; >- ha->pdu_active = pdu_active; >- return pdu; >-} >- >-void qla4xxx_free_pdu(struct scsi_qla_host * ha, struct pdu_entry * pdu) >-{ >- if (ha->free_pdu_bottom == NULL) { >- ha->free_pdu_top = pdu; >- ha->free_pdu_bottom = pdu; >- } else { >- ha->free_pdu_bottom->Next = pdu; >- ha->free_pdu_bottom = pdu; >- } >- dma_free_coherent(&ha->pdev->dev, pdu->BuffLen, pdu->Buff, >- pdu->DmaBuff); >- ha->pdu_active--; >- >- /* Clear PDU */ >- pdu->Buff = NULL; >- pdu->BuffLen = 0; >- pdu->SendBuffLen = 0; >- pdu->RecvBuffLen = 0; >- pdu->Next = NULL; >- pdu->DmaBuff = 0; >-} >- >-/** >- * qla4xxx_send_passthru0_iocb - issues pass-thru iocb to HBA >- * @ha: Pointer to host adapter structure. >- * @fw_ddb_index: firmware ddb index >- * @connection_id: firmware connection id >- * @pdu_dma_data: dma base address of pdu >- * @send_len: send length >- * @recv_len: receive length >- * @control_flags: iocb control flags >- * @handle: iocb handle >- * >- * This routine issues a passthru0 IOCB. >- * hardware_lock acquired upon entry, interrupt context >- **/ >-int qla4_spt0_iocb(struct scsi_qla_host * ha, >- uint16_t fw_ddb_index, >- uint16_t connection_id, >- dma_addr_t pdu_dma_data, uint32_t send_len, >- uint32_t recv_len, uint16_t control_flags, >- uint32_t handle) >-{ >- struct passthru0 *passthru_entry; >- uint8_t status = QLA_SUCCESS; >- >- /* Get pointer to the queue entry for the marker */ >- if (qla4xxx_get_req_pkt(ha, (struct queue_entry **) &passthru_entry) != >- QLA_SUCCESS) { >- status = QLA_ERROR; >- goto exit_send_pt0; >- } >- >- /* Fill in the request queue */ >- passthru_entry->hdr.entryType = ET_PASSTHRU0; >- passthru_entry->hdr.entryCount = 1; >- passthru_entry->handle = cpu_to_le32(handle); >- passthru_entry->target = cpu_to_le16(fw_ddb_index); >- passthru_entry->connectionID = cpu_to_le16(connection_id); >- passthru_entry->timeout = __constant_cpu_to_le16(PT_DEFAULT_TIMEOUT); >- if (send_len) { >- control_flags |= PT_FLAG_SEND_BUFFER; >- passthru_entry->outDataSeg64.base.addrHigh = >- cpu_to_le32(MSDW(pdu_dma_data)); >- passthru_entry->outDataSeg64.base.addrLow = >- cpu_to_le32(LSDW(pdu_dma_data)); >- passthru_entry->outDataSeg64.count = cpu_to_le32(send_len); >- } >- if (recv_len) { >- passthru_entry->inDataSeg64.base.addrHigh = >- cpu_to_le32(MSDW(pdu_dma_data)); >- passthru_entry->inDataSeg64.base.addrLow = >- cpu_to_le32(LSDW(pdu_dma_data)); >- passthru_entry->inDataSeg64.count = cpu_to_le32(recv_len); >- } >- passthru_entry->controlFlags = cpu_to_le16(control_flags); >- wmb(); >- >- /* Tell ISP it's got a new I/O request */ >- writel(ha->request_in, &ha->reg->req_q_in); >- readl(&ha->reg->req_q_in); >- >-exit_send_pt0: >- return status; >-} >- > struct continuation_t1_entry* qla4xxx_alloc_cont_entry( > struct scsi_qla_host *ha) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 459449
:
314505
|
341100
|
341859