Commit f9340fc7 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

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: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 52033fde
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment