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>
This commit is contained in:
Alex Elder 2016-05-24 13:34:47 -05:00 committed by Greg Kroah-Hartman
parent 52033fdebc
commit f9340fc7dd

View File

@ -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);
}
}