linux/drivers/staging/goldfish
Amitoj Kaur Chawla 814625b539 staging: goldfish: goldfish_nand: Return correct error code
The return value of devm_kzalloc on failure of allocation of memory should
be -ENOMEM and not -1.

Found using Coccinelle. A simplified version of the semantic patch
used is:

//<smpl>
@@
expression *e;
@@

e = devm_kzalloc(...);
if (e == NULL) {
...
return
- -1
+ -ENOMEM
;
}
//</smpl>

The single call site does not perform any checks on the return value, hence
no change is required at the call site.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-14 16:52:53 -08:00
..
goldfish_audio.c staging: goldfish: Change form of NULL comparisons 2016-02-09 17:48:01 -08:00
goldfish_nand_reg.h staging: goldfish: Prefer kernel type u32 over uint32_t 2015-09-12 18:24:38 -07:00
goldfish_nand.c staging: goldfish: goldfish_nand: Return correct error code 2016-02-14 16:52:53 -08:00
Kconfig
Makefile
README staging: goldfish: switch from spinlock to mutex 2014-04-16 20:12:55 -07:00

Audio
-----
- Move to using the ALSA framework not faking it
- Fix the wrong user page DMA (moving to ALSA may fix that too)

NAND
----
- Remove excess checking of parameters in calls
- Use dma coherent memory not kmalloc/__pa for the memory (this is just
  a cleanliness issue not a correctness one)