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:
parent
351537d51f
commit
50fff2d6ff
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue