summaryrefslogtreecommitdiff
path: root/source/common/adfile.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-05-31 22:40:24 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-05-31 22:40:24 +0000
commitc457a42be4fca72c51fdca569271b62213d01a37 (patch)
tree0ce624183fb74a6ec5d2260e6904585800e8c4d8 /source/common/adfile.c
parent65c600c804e5a81af3a34d461312027000738994 (diff)
Notes
Diffstat (limited to 'source/common/adfile.c')
-rw-r--r--source/common/adfile.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source/common/adfile.c b/source/common/adfile.c
index 5fff07d3a13c..ac96156db245 100644
--- a/source/common/adfile.c
+++ b/source/common/adfile.c
@@ -316,11 +316,6 @@ FlGenerateFilename (
*/
NewFilename = UtStringCacheCalloc ((ACPI_SIZE)
strlen (InputFilename) + strlen (Suffix) + 2);
- if (!NewFilename)
- {
- return (NULL);
- }
-
strcpy (NewFilename, InputFilename);
/* Try to find the last dot in the filename */
@@ -364,11 +359,6 @@ FlStrdup (
NewString = UtStringCacheCalloc ((ACPI_SIZE) strlen (String) + 1);
- if (!NewString)
- {
- return (NULL);
- }
-
strcpy (NewString, String);
return (NewString);
}