From: Cong Ding Date: Tue, 4 Dec 2012 01:21:44 +0000 (+0000) Subject: staging: echo: remove unused variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c020a7a4ea3bfd85afc1d2b5e18414252f18fe98;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git staging: echo: remove unused variable the variable j isn't used in the loop Signed-off-by: Cong Ding Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/echo/echo.c b/drivers/staging/echo/echo.c index ca87ce9874b..14dfd91ab5d 100644 --- a/drivers/staging/echo/echo.c +++ b/drivers/staging/echo/echo.c @@ -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; @@ -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); }