msm: mdss: debug: fix typo in error checking

Fix a typo in error checking while creating bordercolor debugfs
directory.

Change-Id: I7477f41bdf31dfbd4f9763c3612ccc3f61c5657c
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
This commit is contained in:
Ujwal Patel 2015-07-21 15:51:36 -07:00 committed by David Keitel
parent 351537d51f
commit 50fff2d6ff

View file

@ -1099,9 +1099,9 @@ int mdss_debugfs_init(struct mdss_data_type *mdata)
}
mdd->bordercolor = debugfs_create_dir("bordercolor", mdd->root);
if (IS_ERR_OR_NULL(mdd->root)) {
pr_err("debugfs_create_dir for mdp failed, error %ld\n",
PTR_ERR(mdd->root));
if (IS_ERR_OR_NULL(mdd->bordercolor)) {
pr_err("debugfs_create_dir for bordercolor failed, error %ld\n",
PTR_ERR(mdd->bordercolor));
goto err;
}