Skip to content
Commit eb74bfcf authored by Yingsha Xu's avatar Yingsha Xu Committed by Johannes Berg
Browse files

wifi: mac80211: remove return value check of debugfs_create_dir()



Smatch complains that:
debugfs_hw_add() warn: 'statsd' is an error pointer or valid

Debugfs checks are generally not supposed to be checked for errors
and it is not necessary here.

Just delete the dead code.

Signed-off-by: default avatarYingsha Xu <ysxu@hust.edu.cn>
Reviewed-by: default avatarDongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/r/20230419104548.30124-1-ysxu@hust.edu.cn


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 22b68fc6
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