]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: hns: Use IS_ERR_OR_NULL() helper function
authorHongbo Li <lihongbo22@huawei.com>
Wed, 28 Aug 2024 12:23:36 +0000 (20:23 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Aug 2024 18:42:24 +0000 (11:42 -0700)
commit4266563afbb1eb1735aa7063fe8ff6377991ae42
treeb36999dc79d606ced4b64366da37bb113edfd51b
parent9023fda2f186168e45bb8e7397ad15ff17fd7bf8
net: hns: Use IS_ERR_OR_NULL() helper function

Use the IS_ERR_OR_NULL() helper instead of open-coding a
NULL and an error pointer checks to simplify the code and
improve readability.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20240828122336.3697176-1-lihongbo22@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c