we should check the return value of calling function fir16_create(): a NULL
value means the memory allocation fails.
this patch also cleans up the error handling in function function oslec_create()
Signed-off-by: Cong Ding <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Our convention is one (statement and) variable per line. Enforce
this in drivers/staging/echo/echo.[ch] .
Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Some remaining coding style cleanups to the header files
and the echo.c file.
Cc: David Rowe <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This define is never set in the kernel, so remove the code
using it.
Cc: David Rowe <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This define is never set in the kernel, so remove the code
using it. This lets us drop the mmx.h file as well.
Cc: David Rowe <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This file is no longer needed, thanks to the work done by David.
Cc: David Rowe <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This patch removes the need for the bit_operations.h include file which
can now be deleted. It also contains some minor corrections to comments
(typos and alignment of ASCII formulas). I have also removed some #if
lines that were not necessary.
I have tested the patch using a unit test module that runs in kernel
mode and have verified that the patched code gives identical results to
the previous version using a 8000 sample input sequence. Let me know if
you want this unit test, it runs automatically when the module is
insmod-ed and outputs a go/no go result:
# insmod oslec.ko
# dmesg
[17191803.480000] oslec_test installed
[17191803.480000] Testing OSLEC with 128 taps (16 ms tail)
[17191803.496000] Oslec Unit Test PASSED! pass: 8000 fail: 0
Signed-off-by: David Rowe <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
It's all just minor comment spacing issues. This patch fixes
up the remaining ones and now the code is checkpatch.pl clean.
Cc: Steve Underwood <[email protected]>
Cc: David Rowe <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
I have just had a bug fix submitted for Oslec which I have applied to
Oslec SVN. The bug can potentially stops the echo canceller adapting
after a few seconds, although it hasn't caused many problems in
practice.
Signed-off-by: David Rowe <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This patch removes the very noisy "end of function" markers that are
very annoying when reading the driver code.
Cc: David Rowe <[email protected]>
Cc: Steve Underwood <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This patch removes the malloc()/free() macro wrappers and converts
call-sites to use kcalloc() and kzalloc() where appropriate. I also
fixed up out-of-memory error handling in couple of places where it was
broken.
Cc: David Rowe <[email protected]>
Cc: Steve Underwood <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Split out the external interface to a separate file called oslec.h .
Give the struct a name while we're at it.
Signed-off-by: Tzafrir Cohen <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>