]> git.baikalelectronics.ru Git - kernel.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)
commitc1d3c11e32058d16abfd66bc3170277e24f6a31b
tree4d9591ee7002224ff093b5cd17f1d4f9191c5f62
parenta22abb05fc550a0b48baefad6e4664e4dca096cb
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