Skip to content
Commit 28e70ed9 authored by Ruan Jinjie's avatar Ruan Jinjie Committed by Jon Mason
Browse files

ntb: amd: Drop unnecessary error check for debugfs_create_dir



This patch removes the error checking for debugfs_create_dir in
ntb_hw_amd.c. This is because the DebugFS kernel API is developed
in a way that the caller can safely ignore the errors that
occur during the creation of DebugFS nodes. The debugfs APIs have
a IS_ERR() judge in start_creating() which can handle it
gracefully. so these checks are unnecessary.

Signed-off-by: default avatarRuan Jinjie <ruanjinjie@huawei.com>
Acked-by: default avatarSanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 03c9e6f0
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