mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 16:57:18 +09:00
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:
committed by
Greg Kroah-Hartman
parent
52033fdebc
commit
f9340fc7dd
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user