aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlags49_h2/hcf.c
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@googlemail.com>2011-09-16 00:20:53 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-16 20:34:52 +0200
commit85d5cb15b3a75ca029be34af76fda7d0e081af44 (patch)
treebb616dd19ee4556dff083f47f548064c6fc7ad67 /drivers/staging/wlags49_h2/hcf.c
parentstaging: wlags49_h2: Remove references to SSN (diff)
downloadlinux-dev-85d5cb15b3a75ca029be34af76fda7d0e081af44.tar.xz
linux-dev-85d5cb15b3a75ca029be34af76fda7d0e081af44.zip
staging: wlags49_h2: Remove MUL/DIV_BY_2
Only used in one place, so just inline and get rid of the macro. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlags49_h2/hcf.c')
-rw-r--r--drivers/staging/wlags49_h2/hcf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlags49_h2/hcf.c b/drivers/staging/wlags49_h2/hcf.c
index c46ad3049610..0453b908b2f1 100644
--- a/drivers/staging/wlags49_h2/hcf.c
+++ b/drivers/staging/wlags49_h2/hcf.c
@@ -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