aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-05-10 10:24:35 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-05-10 10:24:35 +0000
commitb00039f739df90a955dd8407f504289b8df47388 (patch)
treea0ce2e5df1ad428b34439e6974ebe183971f983a /sys
parent256a4cb9d72ef8d36489447d2543a3a73a6fad68 (diff)
downloadsrc-b00039f739df90a955dd8407f504289b8df47388.tar.gz
src-b00039f739df90a955dd8407f504289b8df47388.zip
Remove NULL check after M_WAITOK allocations from mfi(4).
MFC after: 1 month Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=299352
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mfi/mfi.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c
index 021a4243f6ba..2bfcc83fdb2a 100644
--- a/sys/dev/mfi/mfi.c
+++ b/sys/dev/mfi/mfi.c
@@ -3230,10 +3230,6 @@ mfi_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct thread *td
(cm->cm_flags & (MFI_CMD_DATAIN | MFI_CMD_DATAOUT))) {
cm->cm_data = data = malloc(cm->cm_len, M_MFIBUF,
M_WAITOK | M_ZERO);
- if (cm->cm_data == NULL) {
- device_printf(sc->mfi_dev, "Malloc failed\n");
- goto out;
- }
} else {
cm->cm_data = 0;
}
@@ -3527,10 +3523,6 @@ mfi_linux_ioctl_int(struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct
(cm->cm_flags & (MFI_CMD_DATAIN | MFI_CMD_DATAOUT))) {
cm->cm_data = data = malloc(cm->cm_len, M_MFIBUF,
M_WAITOK | M_ZERO);
- if (cm->cm_data == NULL) {
- device_printf(sc->mfi_dev, "Malloc failed\n");
- goto out;
- }
} else {
cm->cm_data = 0;
}