Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268403
b: refs/heads/master
c: 85d5cb1
h: refs/heads/master
i:
  268401: d23f87c
  268399: b914351
v: v3
  • Loading branch information
David Kilroy authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent f607844 commit d960c80
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4b7ad42963dbc921c8e10f5b9527ecdaadda0602
refs/heads/master: 85d5cb15b3a75ca029be34af76fda7d0e081af44
2 changes: 1 addition & 1 deletion trunk/drivers/staging/wlags49_h2/hcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3766,7 +3766,7 @@ download( IFBP ifbp, CFG_PROG_STRCT FAR *ltvp ) //Hermes-II
#if 0 //;? as long as the next if contains a hard coded 0, might as well leave it out even more obvious
if ( 0 /*len is definitely not want we want;?*/ && ltvp->mode == CFG_PROG_SEEPROM_READBACK ) {
OPW( HREG_PARAM_1, (hcf_16)(ltvp->nic_addr >> 16) );
OPW( HREG_PARAM_2, MUL_BY_2(ltvp->len - 4));
OPW( HREG_PARAM_2, (hcf_16)((ltvp->len - 4) << 1) );
//. . perform Hermes prog cmd with appropriate mode bits
rc = cmd_exe( ifbp, HCMD_PROGRAM | ltvp->mode, (hcf_16)ltvp->nic_addr );
//. . set up NIC RAM addressability according Resp0-1
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/wlags49_h2/hcfdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,6 @@ err: ;

#define LOF(x) (sizeof(x)/sizeof(hcf_16)-1)

#define MUL_BY_2( x ) ( (x) << 1 ) //used to multiply by 2
#define DIV_BY_2( x ) ( (x) >> 1 ) //used to divide by 2

//resolve problems on for some 16 bits compilers to create 32 bit values
#define MERGE_2( hw, lw ) ( ( ((hcf_32)(hw)) << 16 ) | ((hcf_16)(lw)) )

Expand Down

0 comments on commit d960c80

Please sign in to comment.