Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: staging: echo: Fix coding style issues.

Fixed coding style issues as flagged by checkpatch.pl

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Chris Forbes and committed by
Greg Kroah-Hartman
30c5007e 49184c5d

+2 -9
+2 -9
drivers/staging/echo/echo.c
··· 276 276 kfree(ec); 277 277 return NULL; 278 278 } 279 - 280 279 EXPORT_SYMBOL_GPL(oslec_create); 281 280 282 281 void oslec_free(struct oslec_state *ec) ··· 289 290 kfree(ec->snapshot); 290 291 kfree(ec); 291 292 } 292 - 293 293 EXPORT_SYMBOL_GPL(oslec_free); 294 294 295 295 void oslec_adaption_mode(struct oslec_state *ec, int adaption_mode) 296 296 { 297 297 ec->adaption_mode = adaption_mode; 298 298 } 299 - 300 299 EXPORT_SYMBOL_GPL(oslec_adaption_mode); 301 300 302 301 void oslec_flush(struct oslec_state *ec) ··· 321 324 ec->curr_pos = ec->taps - 1; 322 325 ec->Pstates = 0; 323 326 } 324 - 325 327 EXPORT_SYMBOL_GPL(oslec_flush); 326 328 327 329 void oslec_snapshot(struct oslec_state *ec) 328 330 { 329 331 memcpy(ec->snapshot, ec->fir_taps16[0], ec->taps * sizeof(int16_t)); 330 332 } 331 - 332 333 EXPORT_SYMBOL_GPL(oslec_snapshot); 333 334 334 335 /* Dual Path Echo Canceller */ ··· 401 406 /* efficient "out with the old and in with the new" algorithm so 402 407 we don't have to recalculate over the whole block of 403 408 samples. */ 404 - new = (int)tx *(int)tx; 409 + new = (int)tx * (int)tx; 405 410 old = (int)ec->fir_state.history[ec->fir_state.curr_pos] * 406 411 (int)ec->fir_state.history[ec->fir_state.curr_pos]; 407 412 ec->Pstates += ··· 598 603 599 604 return (int16_t) ec->clean_nlp << 1; 600 605 } 601 - 602 606 EXPORT_SYMBOL_GPL(oslec_update); 603 607 604 608 /* This function is separated from the echo canceller is it is usually called ··· 622 628 giving very clean DC removal. 623 629 */ 624 630 625 - int16_t oslec_hpf_tx(struct oslec_state * ec, int16_t tx) 631 + int16_t oslec_hpf_tx(struct oslec_state *ec, int16_t tx) 626 632 { 627 633 int tmp, tmp1; 628 634 ··· 651 657 652 658 return tx; 653 659 } 654 - 655 660 EXPORT_SYMBOL_GPL(oslec_hpf_tx); 656 661 657 662 MODULE_LICENSE("GPL");