From: Alex Elder Date: Tue, 24 May 2016 18:34:47 +0000 (-0500) Subject: greybus: report right error value X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~335 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f9340fc7dd9f42edfcd7a0e332798ae01a6b48ac;p=karo-tx-linux.git 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 Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- 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); } }