git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
drivers
/
scsi
/
NCR53C9x.c
diff --git
a/drivers/scsi/NCR53C9x.c
b/drivers/scsi/NCR53C9x.c
index
9f70a7b
..
9cd6f27
100644
(file)
--- a/
drivers/scsi/NCR53C9x.c
+++ b/
drivers/scsi/NCR53C9x.c
@@
-94,7
+94,7
@@
enum {
};
/* The master ring of all esp hosts we are managing in this driver. */
};
/* The master ring of all esp hosts we are managing in this driver. */
-struct NCR_ESP *espchain
= 0
;
+struct NCR_ESP *espchain;
int nesps = 0, esps_in_use = 0, esps_running = 0;
irqreturn_t esp_intr(int irq, void *dev_id, struct pt_regs *pregs);
int nesps = 0, esps_in_use = 0, esps_running = 0;
irqreturn_t esp_intr(int irq, void *dev_id, struct pt_regs *pregs);
@@
-555,7
+555,7
@@
struct NCR_ESP* esp_allocate(Scsi_Host_Template *tpnt, void *esp_dev)
} else {
espchain = esp;
}
} else {
espchain = esp;
}
- esp->next =
0
;
+ esp->next =
NULL
;
return esp;
}
return esp;
}
@@
-565,7
+565,7
@@
void esp_deallocate(struct NCR_ESP *esp)
struct NCR_ESP *elink;
if(espchain == esp) {
struct NCR_ESP *elink;
if(espchain == esp) {
- espchain =
0
;
+ espchain =
NULL
;
} else {
for(elink = espchain; elink && (elink->next != esp); elink = elink->next);
if(elink)
} else {
for(elink = espchain; elink && (elink->next != esp); elink = elink->next);
if(elink)
@@
-708,9
+708,9
@@
void esp_initialize(struct NCR_ESP *esp)
}
/* Initialize the command queues */
}
/* Initialize the command queues */
- esp->current_SC =
0
;
- esp->disconnected_SC =
0
;
- esp->issue_SC =
0
;
+ esp->current_SC =
NULL
;
+ esp->disconnected_SC =
NULL
;
+ esp->issue_SC =
NULL
;
/* Clear the state machines. */
esp->targets_present = 0;
/* Clear the state machines. */
esp->targets_present = 0;
@@
-1728,7
+1728,7
@@
static inline void esp_reconnect(struct NCR_ESP *esp, Scsi_Cmnd *sp)
ESPLOG(("esp%d: Weird, being reselected but disconnected "
"command queue is empty.\n", esp->esp_id));
esp->snip = 0;
ESPLOG(("esp%d: Weird, being reselected but disconnected "
"command queue is empty.\n", esp->esp_id));
esp->snip = 0;
- esp->current_SC =
0
;
+ esp->current_SC =
NULL
;
sp->SCp.phase = not_issued;
append_SC(&esp->issue_SC, sp);
}
sp->SCp.phase = not_issued;
append_SC(&esp->issue_SC, sp);
}
@@
-3393,7
+3393,7
@@
static int esp_work_bus(struct NCR_ESP *esp, struct ESP_regs *eregs)
}
static espfunc_t isvc_vector[] = {
}
static espfunc_t isvc_vector[] = {
-
0
,
+
NULL
,
esp_do_phase_determine,
esp_do_resetbus,
esp_finish_reset,
esp_do_phase_determine,
esp_do_resetbus,
esp_finish_reset,