summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2016-05-24 13:34:47 -0500
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-27 11:28:16 -0700
commitf9340fc7dd9f42edfcd7a0e332798ae01a6b48ac (patch)
treece26680e0aee05d1bd9334324bbe9d3d52aeac5c /drivers/staging
parent52033fdebc92021490729465e27ffb47cd42b0e0 (diff)
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/greybus/camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index dd482bd94637..dda871912c10 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);
}
}