summaryrefslogtreecommitdiffstats
path: root/drivers/staging/echo/echo.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-08-25 22:07:56 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:16 -0700
commit56791f0a85382936d3922ecd05b4eedbfb53d2a6 (patch)
tree851da7545ca3f0ea56c3f839c2f31a904be14a61 /drivers/staging/echo/echo.c
parentc8b3953c4c267133ed3276d7b052282dca1e2e91 (diff)
downloadop-kernel-dev-56791f0a85382936d3922ecd05b4eedbfb53d2a6.zip
op-kernel-dev-56791f0a85382936d3922ecd05b4eedbfb53d2a6.tar.gz
Staging: echo: coding style cleanups
Some remaining coding style cleanups to the header files and the echo.c file. Cc: David Rowe <david@rowetel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/echo/echo.c')
-rw-r--r--drivers/staging/echo/echo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/echo/echo.c b/drivers/staging/echo/echo.c
index 548365c..4cc4f2e 100644
--- a/drivers/staging/echo/echo.c
+++ b/drivers/staging/echo/echo.c
@@ -220,12 +220,12 @@ static inline void lms_adapt_bg(struct oslec_state *ec, int clean,
}
#endif
-static __inline__ int top_bit(unsigned int bits)
+static inline int top_bit(unsigned int bits)
{
if (bits == 0)
- return -1;
- else
- return (int)fls((int32_t)bits)-1;
+ return -1;
+ else
+ return (int)fls((int32_t)bits)-1;
}
struct oslec_state *oslec_create(int len, int adaption_mode)
@@ -466,7 +466,7 @@ int16_t oslec_update(struct oslec_state *ec, int16_t tx, int16_t rx)
factor = (2^30) * (2^-2) * clean_bg_rx/P
- (30 - 2 - log2(P))
+ (30 - 2 - log2(P))
factor = clean_bg_rx 2 ----- (3)
To avoid a divide we approximate log2(P) as top_bit(P),
OpenPOWER on IntegriCloud