diff options
author | Hongbo Li <lihongbo22@huawei.com> | 2024-08-28 20:23:36 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-29 11:42:24 -0700 |
commit | 4266563afbb1eb1735aa7063fe8ff6377991ae42 (patch) | |
tree | b36999dc79d606ced4b64366da37bb113edfd51b /drivers/nfc | |
parent | 9023fda2f186168e45bb8e7397ad15ff17fd7bf8 (diff) | |
download | lwn-4266563afbb1eb1735aa7063fe8ff6377991ae42.tar.gz lwn-4266563afbb1eb1735aa7063fe8ff6377991ae42.zip |
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>
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions