diff options
author | Alex Elder <elder@linaro.org> | 2016-05-24 13:34:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-27 11:28:16 -0700 |
commit | f9340fc7dd9f42edfcd7a0e332798ae01a6b48ac (patch) | |
tree | ce26680e0aee05d1bd9334324bbe9d3d52aeac5c | |
parent | 52033fdebc92021490729465e27ffb47cd42b0e0 (diff) | |
download | op-kernel-dev-f9340fc7dd9f42edfcd7a0e332798ae01a6b48ac.zip op-kernel-dev-f9340fc7dd9f42edfcd7a0e332798ae01a6b48ac.tar.gz |
greybus: report right error value
Running "make coccicheck" on the Greybus code discovered that
an error message in gb_camera_debugfs_init() was interpreting
the wrong value in reporting the error code. Fix that.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
-rw-r--r-- | drivers/staging/greybus/camera.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c index dd482bd..dda8719 100644 --- a/drivers/staging/greybus/camera.c +++ b/drivers/staging/greybus/camera.c @@ -873,7 +873,7 @@ static int gb_camera_debugfs_init(struct gb_camera *gcam) if (IS_ERR(dentry)) { gcam_err(gcam, "debugfs operation %s create failed (%ld)\n", - entry->name, PTR_ERR(gcam->debugfs.root)); + entry->name, PTR_ERR(dentry)); return PTR_ERR(dentry); } } |