summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-08-29 19:01:04 +0200
committerPeter Jones <pjones@redhat.com>2021-09-03 15:19:23 -0400
commit44f186354b6c9262e9a2b9f99cb5233d8fc19abf (patch)
tree562cb08e240ba699caf66ed28eb5e88127f4acdd
parentf9ced705b692d7717461117784ddc28b39305722 (diff)
downloadefi-boot-shim-44f186354b6c9262e9a2b9f99cb5233d8fc19abf.tar.gz
efi-boot-shim-44f186354b6c9262e9a2b9f99cb5233d8fc19abf.zip
str: remove duplicate parameter check
There is no need to check the parameters of strntoken() twice. Fixes: c7bb10cf154a ("Tidy up our string primitives...") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--include/str.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/str.h b/include/str.h
index d433e6ec..1d911e66 100644
--- a/include/str.h
+++ b/include/str.h
@@ -72,8 +72,6 @@ strntoken(char *str, size_t max, const char *delims, char **token, char *state)
return 0;
tokend = &str[max-1];
- if (!str || max == 0 || !delims || !token)
- return 0;
/*
* the very special case of "" with max=1, where we have no prior