]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: bcm2835-audio: use conditional only for error case
authorAishwarya Pant <aishpant@gmail.com>
Sun, 12 Mar 2017 15:39:31 +0000 (21:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2017 23:57:53 +0000 (07:57 +0800)
commit8f1fff07b07fdb15d1d585f6eb1ea56e748bc637
tree833b62a35e4bb7311419756110aa3a80c287ba8c
parent5e00b25853ef2d5602d14f0e6039268cc89e6afe
staging: bcm2835-audio: use conditional only for error case

* Refactor conditional to check if memory allocation has failed and
immediately return (-ENOMEM); if block for success case is removed.

* Return the error value -EBUSY when queue_work() fails.

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c