if (sym_get_cam_status(cmd) != CAM_CMD_TIMEOUT) 
if (sym_get_cam_status(cmd) != DID_TIME_OUT) 
int sym_clear_tasks(struct sym_hcb *np, int cam_status, int target, int lun, int task){	SYM_QUEHEAD qtmp, *qp;	int i = 0;	struct sym_ccb *cp;	/*	 *  Move the entire BUSY queue to our temporary queue.	 */	sym_que_init(&qtmp);	sym_que_splice(&np->busy_ccbq, &qtmp);	sym_que_init(&np->busy_ccbq);	/*	 *  Put all CCBs that matches our criteria into 	 *  the COMP queue and put back other ones into 	 *  the BUSY queue.	 */	while ((qp = sym_remque_head(&qtmp)) != 0) {		struct scsi_cmnd *cmd;		cp = sym_que_entry(qp, struct sym_ccb, link_ccbq);		cmd = cp->cmd;		if (cp->host_status != HS_DISCONNECT ||		    cp->target != target	     ||		    (lun  != -1 && cp->lun != lun)   ||		    (task != -1 && 			(cp->tag != NO_TAG && cp->scsi_smsg[2] != task))) {			sym_insque_tail(&cp->link_ccbq, &np->busy_ccbq);			continue;		}		sym_insque_tail(&cp->link_ccbq, &np->comp_ccbq);		/* Preserve the software timeout condition */		if (sym_get_cam_status(cmd) != CAM_CMD_TIMEOUT)			sym_set_cam_status(cmd, cam_status);		++i;#if 0printf("XXXX TASK @%p CLEARED\n", cp);#endif	}	return i;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/53222b906903fd861dc24ebccfa07ee125941313/sym_hipd.c/buggy/drivers/scsi/sym53c8xx_2/sym_hipd.c