]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: vchiq_arm: fix error codes in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 11 Jul 2017 19:55:04 +0000 (22:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 07:13:53 +0000 (09:13 +0200)
commit397fcd12e4890624228e25468a1ab5f6fc78a1e3
tree4d9591ee7002224ff093b5cd17f1d4f9191c5f62
parent15d5193104a457d5151840247e3bce561c42e3e9
staging: vchiq_arm: fix error codes in probe

If vchiq_debugfs_init() fails, then we accidentally return a valid
pointer casted to int on error.  This code is simpler if we get rid of
the "ptr_err" variable and just use "err" throughout.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c