Prechádzať zdrojové kódy

[SCSI] lpfc: Remove unneeded IOCB_t * cast

Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
James.Smart@Emulex.Com 19 rokov pred
rodič
commit
4a0dfcdefb
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      drivers/scsi/lpfc/lpfc_sli.c

+ 1 - 1
drivers/scsi/lpfc/lpfc_sli.c

@@ -936,7 +936,7 @@ lpfc_sli_handle_fast_ring_event(struct lpfc_hba * phba,
 		 * structure.  The copy involves a byte-swap since the
 		 * structure.  The copy involves a byte-swap since the
 		 * network byte order and pci byte orders are different.
 		 * network byte order and pci byte orders are different.
 		 */
 		 */
-		entry = (IOCB_t *) IOCB_ENTRY(pring->rspringaddr, pring->rspidx);
+		entry = IOCB_ENTRY(pring->rspringaddr, pring->rspidx);
 		lpfc_sli_pcimem_bcopy((uint32_t *) entry,
 		lpfc_sli_pcimem_bcopy((uint32_t *) entry,
 				      (uint32_t *) &rspiocbq.iocb,
 				      (uint32_t *) &rspiocbq.iocb,
 				      sizeof (IOCB_t));
 				      sizeof (IOCB_t));