projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc2754
)
[PATCH] fix idiocy in asd_init_lseq_mdp()
author
Al Viro
<
[email protected]
>
Mon, 25 Sep 2006 01:57:22 +0000
(
02:57
+0100)
committer
Linus Torvalds
<
[email protected]
>
Mon, 25 Sep 2006 03:07:49 +0000
(20:07 -0700)
To whoever had written that code:
a) priority of >> is higher than that of &
b) priority of typecast is higher than that of any binary operator
c) learn the fscking C
Signed-off-by: Al Viro <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/scsi/aic94xx/aic94xx_seq.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/aic94xx/aic94xx_seq.c
b/drivers/scsi/aic94xx/aic94xx_seq.c
index d9b6da5fd06cad0e36c82e9d5c63c32707dade2d..56e4b3ba6a08a79710ac5190bccc41fe099e0905 100644
(file)
--- a/
drivers/scsi/aic94xx/aic94xx_seq.c
+++ b/
drivers/scsi/aic94xx/aic94xx_seq.c
@@
-764,7
+764,7
@@
static void asd_init_lseq_mdp(struct asd_ha_struct *asd_ha, int lseq)
asd_write_reg_word(asd_ha, LmSEQ_FIRST_INV_SCB_SITE(lseq),
(u16)last_scb_site_no+1);
asd_write_reg_word(asd_ha, LmSEQ_INTEN_SAVE(lseq),
- (u16)
LmM0INTEN_MASK & 0xFFFF0000 >> 16
);
+ (u16)
((LmM0INTEN_MASK & 0xFFFF0000) >> 16)
);
asd_write_reg_word(asd_ha, LmSEQ_INTEN_SAVE(lseq) + 2,
(u16) LmM0INTEN_MASK & 0xFFFF);
asd_write_reg_byte(asd_ha, LmSEQ_LINK_RST_FRM_LEN(lseq), 0);