[PATCH 07/10] staging: mt7621-mmc: Remove error message in debug
Christian Lütke-Stetzkamp
christian at lkamp.de
Fri Apr 6 08:36:57 UTC 2018
If the debug file in proc fs is not successfully created current code
prints an error message, this is removed.
Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
Signed-off-by: Christian Lütke-Stetzkamp <christian at lkamp.de>
---
drivers/staging/mt7621-mmc/dbg.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/mt7621-mmc/dbg.c b/drivers/staging/mt7621-mmc/dbg.c
index abf92a84a417..9ad330729300 100644
--- a/drivers/staging/mt7621-mmc/dbg.c
+++ b/drivers/staging/mt7621-mmc/dbg.c
@@ -340,10 +340,6 @@ static const struct file_operations msdc_debug_fops = {
int msdc_debug_proc_init(void)
{
struct proc_dir_entry *de = proc_create("msdc_debug", 0667, NULL, &msdc_debug_fops);
-
- if (!de || IS_ERR(de))
- printk("!! Create MSDC debug PROC fail !!\n");
-
return 0;
}
EXPORT_SYMBOL_GPL(msdc_debug_proc_init);
--
2.16.1
More information about the devel
mailing list