diff options
| author | zhong jiang <zhongjiang@huawei.com> | 2018-09-08 09:35:06 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-09-12 02:01:33 -0400 |
| commit | 0527097ce81cad20529e4f2c37a092774d713d36 (patch) | |
| tree | 67c0f3b03a35e02a914324307f253ec6f6166353 /drivers/net/xen-netback | |
| parent | f973b76888aa897f799153ba1b3026a8dcc2d221 (diff) | |
net: xenbus: remove redundant condition check before debugfs_remove_recursive
debugfs_remove_recursive has taken the IS_ERR_OR_NULL into account. Just
remove the unnecessary condition check.
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>
Diffstat (limited to 'drivers/net/xen-netback')
| -rw-r--r-- | drivers/net/xen-netback/xenbus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index cd51492ae6c2..fe1d52247bbe 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c | |||
| @@ -254,8 +254,7 @@ static void xenvif_debugfs_delif(struct xenvif *vif) | |||
| 254 | if (IS_ERR_OR_NULL(xen_netback_dbg_root)) | 254 | if (IS_ERR_OR_NULL(xen_netback_dbg_root)) |
| 255 | return; | 255 | return; |
| 256 | 256 | ||
| 257 | if (!IS_ERR_OR_NULL(vif->xenvif_dbg_root)) | 257 | debugfs_remove_recursive(vif->xenvif_dbg_root); |
| 258 | debugfs_remove_recursive(vif->xenvif_dbg_root); | ||
| 259 | vif->xenvif_dbg_root = NULL; | 258 | vif->xenvif_dbg_root = NULL; |
| 260 | } | 259 | } |
| 261 | #endif /* CONFIG_DEBUG_FS */ | 260 | #endif /* CONFIG_DEBUG_FS */ |
