Skip to content

Commit

Permalink
staging: echo: remove unused variable
Browse files Browse the repository at this point in the history
the variable j isn't used in the loop

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Cong Ding authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent e02b124 commit c020a7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/echo/echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
static inline void lms_adapt_bg(struct oslec_state *ec, int clean, int shift)
{
int i;
int j;
int offset1;
int offset2;
int factor;
Expand All @@ -142,7 +141,7 @@ static inline void lms_adapt_bg(struct oslec_state *ec, int clean, int shift)

/* asm("st:"); */
n = ec->taps;
for (i = 0, j = offset2; i < n; i++, j++) {
for (i = 0; i < n; i++) {
exp = *phist++ * factor;
ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15);
}
Expand Down

0 comments on commit c020a7a

Please sign in to comment.