diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-09-08 09:53:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-12 02:02:08 -0400 |
commit | aad06d1104e8d5afee14ee4a4b9b3f39de0c9b67 (patch) | |
tree | f9b5495508c715a97a1e514c484b35b436ae8b89 | |
parent | 0527097ce81cad20529e4f2c37a092774d713d36 (diff) |
xen-netback: remove unecessary condition check before debugfs_remove_recursive
debugfs_remove_recursive has taken IS_ERR_OR_NULL into account. So just
remove the condition check before debugfs_remove_recursive.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/xen-netback/netback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 3621e05a7494..80aae3a32c2a 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c | |||
@@ -1660,8 +1660,7 @@ module_init(netback_init); | |||
1660 | static void __exit netback_fini(void) | 1660 | static void __exit netback_fini(void) |
1661 | { | 1661 | { |
1662 | #ifdef CONFIG_DEBUG_FS | 1662 | #ifdef CONFIG_DEBUG_FS |
1663 | if (!IS_ERR_OR_NULL(xen_netback_dbg_root)) | 1663 | debugfs_remove_recursive(xen_netback_dbg_root); |
1664 | debugfs_remove_recursive(xen_netback_dbg_root); | ||
1665 | #endif /* CONFIG_DEBUG_FS */ | 1664 | #endif /* CONFIG_DEBUG_FS */ |
1666 | xenvif_xenbus_fini(); | 1665 | xenvif_xenbus_fini(); |
1667 | } | 1666 | } |