summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorSimon Horman <horms@kernel.org>2025-06-17 09:45:39 +0100
committerJakub Kicinski <kuba@kernel.org>2025-06-18 14:17:32 -0700
commita9874d961e8c670244d5659d60b9e96701d44f16 (patch)
treee8baafd27a816acbd82cb8d0a9bca790a874f260 /scripts/lib/kdoc/kdoc_files.py
parent4f451b977e6f8f461adc329642a0c979cd0fec46 (diff)
nfc: Remove checks for nla_data returning NULL
The implementation of nla_data is as follows: static inline void *nla_data(const struct nlattr *nla) { return (char *) nla + NLA_HDRLEN; } Excluding the case where nla is exactly -NLA_HDRLEN, it will not return NULL. And it seems misleading to assume that it can, other than in this corner case. So drop checks for this condition. Flagged by Smatch. Compile tested only. Signed-off-by: Simon Horman <horms@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/20250617-nfc-null-data-v1-1-c7525ead2e95@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions