提交 59b9796d 编写于 作者: M Mauro Carvalho Chehab

i5100_edac: Remove two checkpatch warnings

The last changeset introduced a few checkpatch warnings:

WARNING: debugfs_remove_recursive(NULL) is safe this check is probably not required
261: FILE: drivers/edac/i5100_edac.c:1207:
+       if (priv->debugfs)
+               debugfs_remove_recursive(priv->debugfs);

WARNING: debugfs_remove(NULL) is safe this check is probably not required
290: FILE: drivers/edac/i5100_edac.c:1250:
+       if (i5100_debugfs)
+               debugfs_remove(i5100_debugfs);

Get rid of them.
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 9cbc6d38
...@@ -1203,7 +1203,6 @@ static void i5100_remove_one(struct pci_dev *pdev) ...@@ -1203,7 +1203,6 @@ static void i5100_remove_one(struct pci_dev *pdev)
priv = mci->pvt_info; priv = mci->pvt_info;
if (priv->debugfs)
debugfs_remove_recursive(priv->debugfs); debugfs_remove_recursive(priv->debugfs);
priv->scrub_enable = 0; priv->scrub_enable = 0;
...@@ -1246,7 +1245,6 @@ static int __init i5100_init(void) ...@@ -1246,7 +1245,6 @@ static int __init i5100_init(void)
static void __exit i5100_exit(void) static void __exit i5100_exit(void)
{ {
if (i5100_debugfs)
debugfs_remove(i5100_debugfs); debugfs_remove(i5100_debugfs);
pci_unregister_driver(&i5100_driver); pci_unregister_driver(&i5100_driver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册