- Correct spelling. [1]

- Remove variables which are unused besides initialization. [2]

Submitted by:	brucec [1], Christoph Mallon [2]
This commit is contained in:
marius 2011-04-22 09:52:28 +00:00
parent bbd1ccd231
commit 1e62807898
4 changed files with 13 additions and 17 deletions

View File

@ -70,7 +70,7 @@ using `man sym' for driver usage and features description, and
I haven't removed this README file from the repository since
I may have to provide additional documentation to people
interested in understanding the driver sources and/or in helping
driver development and maintainance.
driver development and maintenance.
As a result, this file is now under reconstruction. :-)

View File

@ -1027,7 +1027,7 @@ static const struct SYM_FWA_SCR SYM_FWA_SCR = {
* It shall be a tagged command.
* Read SIMPLE+TAG.
* The C code will deal with errors.
* Agressive optimization, is'nt it? :)
* Aggressive optimization, is'nt it? :)
*/
SCR_MOVE_ABS (2) ^ SCR_MSG_IN,
HADDR_1 (msgin),
@ -1051,7 +1051,7 @@ static const struct SYM_FWA_SCR SYM_FWA_SCR = {
RADDR_1 (dsa),
/*
* The SIDL still contains the TAG value.
* Agressive optimization, isn't it? :):)
* Aggressive optimization, isn't it? :):)
*/
SCR_REG_SFBR (sidl, SCR_SHL, 0),
0,
@ -1352,7 +1352,7 @@ static const struct SYM_FWB_SCR SYM_FWB_SCR = {
* some target to reset or some disconnected
* job to abort. Since error recovery is a serious
* busyness, we will really reset the SCSI BUS, if
* case of a SCSI interrupt occuring in this path.
* case of a SCSI interrupt occurring in this path.
*/
/*
@ -1461,7 +1461,7 @@ static const struct SYM_FWB_SCR SYM_FWB_SCR = {
PADDR_B (msg_weird_seen),
/*
* We donnot handle extended messages from SCRIPTS.
* Read the amount of data correponding to the
* Read the amount of data corresponding to the
* message length and call the C code.
*/
SCR_COPY (1),

View File

@ -945,7 +945,7 @@ static const struct SYM_FWA_SCR SYM_FWA_SCR = {
* It shall be a tagged command.
* Read SIMPLE+TAG.
* The C code will deal with errors.
* Agressive optimization, is'nt it? :)
* Aggressive optimization, is'nt it? :)
*/
SCR_MOVE_ABS (2) ^ SCR_MSG_IN,
HADDR_1 (msgin),
@ -957,7 +957,7 @@ static const struct SYM_FWA_SCR SYM_FWA_SCR = {
offsetof(struct sym_lcb, head.itlq_tbl_sa),
/*
* The SIDL still contains the TAG value.
* Agressive optimization, isn't it? :):)
* Aggressive optimization, isn't it? :):)
*/
SCR_REG_SFBR (sidl, SCR_SHL, 0),
0,
@ -1213,7 +1213,7 @@ static const struct SYM_FWB_SCR SYM_FWB_SCR = {
* some target to reset or some disconnected
* job to abort. Since error recovery is a serious
* busyness, we will really reset the SCSI BUS, if
* case of a SCSI interrupt occuring in this path.
* case of a SCSI interrupt occurring in this path.
*/
/*
@ -1320,7 +1320,7 @@ static const struct SYM_FWB_SCR SYM_FWB_SCR = {
PADDR_B (msg_weird_seen),
/*
* We donnot handle extended messages from SCRIPTS.
* Read the amount of data correponding to the
* Read the amount of data corresponding to the
* message length and call the C code.
*/
SCR_STORE_REL (scratcha, 1),

View File

@ -366,7 +366,7 @@ static void MDELAY(int ms) { while (ms--) UDELAY(1000); }
* from the SCRIPTS code. In addition, cache line alignment
* is guaranteed for power of 2 cache line size.
*
* This allocator has been developped for the Linux sym53c8xx
* This allocator has been developed for the Linux sym53c8xx
* driver, since this O/S does not provide naturally aligned
* allocations.
* It has the advantage of allowing the driver to use private
@ -1959,10 +1959,8 @@ static void
sym_fw1_setup(hcb_p np, const struct sym_fw *fw)
{
struct sym_fw1a_scr *scripta0;
struct sym_fw1b_scr *scriptb0;
scripta0 = (struct sym_fw1a_scr *) np->scripta0;
scriptb0 = (struct sym_fw1b_scr *) np->scriptb0;
/*
* Fill variable parts in scripts.
@ -1983,10 +1981,8 @@ static void
sym_fw2_setup(hcb_p np, const struct sym_fw *fw)
{
struct sym_fw2a_scr *scripta0;
struct sym_fw2b_scr *scriptb0;
scripta0 = (struct sym_fw2a_scr *) np->scripta0;
scriptb0 = (struct sym_fw2b_scr *) np->scriptb0;
/*
* Fill variable parts in scripts.
@ -2294,7 +2290,7 @@ static void sym_nvram_setup_target (hcb_p np, int targ, struct sym_nvram *nvp);
static int sym_read_nvram (hcb_p np, struct sym_nvram *nvp);
/*
* Print something which allows to retrieve the controler type,
* Print something which allows to retrieve the controller type,
* unit, target, lun concerned by a kernel message.
*/
static void PRINT_TARGET (hcb_p np, int target)
@ -4300,7 +4296,7 @@ static void sym_int_ma (hcb_p np)
}
/*
* The data in the dma fifo has not been transfered to
* The data in the dma fifo has not been transferred to
* the target -> add the amount to the rest
* and clear the data.
* Check the sstat2 register in case of wide transfer.
@ -7520,7 +7516,7 @@ static void sym_action(struct cam_sim *sim, union ccb *ccb)
}
/*
* Retreive the target and lun descriptors.
* Retrieve the target and lun descriptors.
*/
tp = &np->target[ccb_h->target_id];
lp = sym_lp(np, tp, ccb_h->target_lun);