summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2016-03-29 13:56:59 +0000
committertrasz <trasz@FreeBSD.org>2016-03-29 13:56:59 +0000
commitca92bb3067ab9958b69fda6b1f710ff0db5fea96 (patch)
treee39a5d4590b1ea3e68ff1a7bfa905eb2d62f10bf /sys/ufs
parent68e9a48abbf297dc6891e141adfa1e5ba920d0a8 (diff)
downloadFreeBSD-src-ca92bb3067ab9958b69fda6b1f710ff0db5fea96.zip
FreeBSD-src-ca92bb3067ab9958b69fda6b1f710ff0db5fea96.tar.gz
Remove some NULL checks for M_WAITOK allocations.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_extattr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c
index 209d93e..b521a42 100644
--- a/sys/ufs/ufs/ufs_extattr.c
+++ b/sys/ufs/ufs/ufs_extattr.c
@@ -597,8 +597,6 @@ ufs_extattr_enable(struct ufsmount *ump, int attrnamespace,
attribute = malloc(sizeof(struct ufs_extattr_list_entry),
M_UFS_EXTATTR, M_WAITOK);
- if (attribute == NULL)
- return (ENOMEM);
if (!(ump->um_extattr.uepm_flags & UFS_EXTATTR_UEPM_STARTED)) {
error = EOPNOTSUPP;
OpenPOWER on IntegriCloud