staging: most: return proper error
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 8 Feb 2016 17:56:46 +0000 (23:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:40:02 +0000 (19:40 -0800)
commitcc4188b6bb44a68c49af981ef5ec410d66d5c84d
tree3d35e8151bafc01625b588a221f94112364e21fb
parentea39854712ba8a0757bc9fa6b6c17e8808bc6fda
staging: most: return proper error

We were returning ENOMEM on all types of errors. Lets return the actual
error code. At the same time remove the label which became unused as a
result of this patch.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/core.c