staging: most: return error value
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 8 Feb 2016 17:25:34 +0000 (22:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:40:02 +0000 (19:40 -0800)
commitea39854712ba8a0757bc9fa6b6c17e8808bc6fda
tree9216e593a03712dd5a5f63a37f1340101ac77565
parent5fe36bf068e4bd09bc11aabb6a4f30ea831913ef
staging: most: return error value

On error we were returning retval, but retval is not having the error
value. We will get the error value using PTR_ERR.

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