Sfoglia il codice sorgente

msm: ipa: fix wrong check for debugfs on IPA GSB

The return for debugfs API got changed. The fix here is to fix the
return check for IPA GSB debugfs init.

Change-Id: I4c6e97c612592763ceab66abdee99d7761c9c164
Bojun Pan 4 anni fa
parent
commit
48672431e8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/platform/msm/ipa/ipa_clients/ipa_gsb.c

+ 1 - 1
drivers/platform/msm/ipa/ipa_clients/ipa_gsb.c

@@ -209,7 +209,7 @@ static void ipa_gsb_debugfs_init(void)
 	const mode_t read_only_mode = 00444;
 
 	dent = debugfs_create_dir("ipa_gsb", NULL);
-	if (IS_ERR(dent)) {
+	if (!dent) {
 		IPA_GSB_ERR("fail to create folder ipa_gsb\n");
 		return;
 	}