Commit e1b8ebd2 authored by Christian Lütke-Stetzkamp's avatar Christian Lütke-Stetzkamp Committed by Greg Kroah-Hartman

staging: mt7621-mmc: Remove error message in debug

If the debug file in proc fs is not successfully created current code
prints an error message, this is removed. de is also not an error
pointer, so the IS_ERR() call leads to a static checker warning. The
unused return value of the msdc_debug_proc_init function is also removed.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarChristian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 997ae819
...@@ -337,14 +337,9 @@ static const struct file_operations msdc_debug_fops = { ...@@ -337,14 +337,9 @@ static const struct file_operations msdc_debug_fops = {
.release = single_release, .release = single_release,
}; };
int msdc_debug_proc_init(void) void msdc_debug_proc_init(void)
{ {
struct proc_dir_entry *de = proc_create("msdc_debug", 0667, NULL, &msdc_debug_fops); 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); EXPORT_SYMBOL_GPL(msdc_debug_proc_init);
#endif #endif
...@@ -146,7 +146,7 @@ do { \ ...@@ -146,7 +146,7 @@ do { \
} while (0); } while (0);
#endif #endif
int msdc_debug_proc_init(void); void msdc_debug_proc_init(void);
#if 0 /* --- chhung */ #if 0 /* --- chhung */
void msdc_init_gpt(void); void msdc_init_gpt(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment