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

Configure Feed

Select the types of activity you want to include in your feed.

scsi: qla2xxx: Remove superfluous sts_entry_* casts

The C language supports implicit casting of void pointers to non-void
pointers. Remove explicit sts_entry_* casts that are not necessary.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
1a20719e 5ec9f904

+5 -10
+5 -10
drivers/scsi/qla2xxx/qla_isr.c
··· 1513 1513 if (comp_status == CS_DATA_UNDERRUN) { 1514 1514 res = DID_OK << 16; 1515 1515 bsg_reply->reply_payload_rcv_len = 1516 - le16_to_cpu(((sts_entry_t *)pkt)->rsp_info_len); 1516 + le16_to_cpu(pkt->rsp_info_len); 1517 1517 1518 1518 ql_log(ql_log_warn, vha, 0x5048, 1519 1519 "CT pass-through-%s error comp_status=0x%x total_byte=0x%x.\n", ··· 2256 2256 struct bsg_job *bsg_job = NULL; 2257 2257 struct fc_bsg_request *bsg_request; 2258 2258 struct fc_bsg_reply *bsg_reply; 2259 - sts_entry_t *sts; 2260 - struct sts_entry_24xx *sts24; 2261 - 2262 - sts = (sts_entry_t *) pkt; 2263 - sts24 = (struct sts_entry_24xx *) pkt; 2259 + sts_entry_t *sts = pkt; 2260 + struct sts_entry_24xx *sts24 = pkt; 2264 2261 2265 2262 /* Validate handle. */ 2266 2263 if (index >= req->num_outstanding_cmds) { ··· 2403 2406 srb_t *sp; 2404 2407 fc_port_t *fcport; 2405 2408 struct scsi_cmnd *cp; 2406 - sts_entry_t *sts; 2407 - struct sts_entry_24xx *sts24; 2409 + sts_entry_t *sts = pkt; 2410 + struct sts_entry_24xx *sts24 = pkt; 2408 2411 uint16_t comp_status; 2409 2412 uint16_t scsi_status; 2410 2413 uint16_t ox_id; ··· 2422 2425 uint16_t state_flags = 0; 2423 2426 uint16_t retry_delay = 0; 2424 2427 2425 - sts = (sts_entry_t *) pkt; 2426 - sts24 = (struct sts_entry_24xx *) pkt; 2427 2428 if (IS_FWI2_CAPABLE(ha)) { 2428 2429 comp_status = le16_to_cpu(sts24->comp_status); 2429 2430 scsi_status = le16_to_cpu(sts24->scsi_status) & SS_MASK;