From 54841c01020c7c37459374422914e55290ba5e51 Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Mon, 19 Jan 2015 14:31:46 +0100 Subject: [PATCH] Fix incorrect sanity check Remove invalid sanity check where an array is tested against NULL - not a pointer Change-Id: I3d5e33585e7f97a41124af4133e8a879ab21d972 --- minix/lib/libc/sys/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minix/lib/libc/sys/ioctl.c b/minix/lib/libc/sys/ioctl.c index f1eb9cd4e..a0929526c 100644 --- a/minix/lib/libc/sys/ioctl.c +++ b/minix/lib/libc/sys/ioctl.c @@ -39,7 +39,7 @@ static void rewrite_i2c_minix_to_netbsd(i2c_ioctl_exec_t *out, minix_i2c_ioctl_exec_t *in) { /* the only field that changes is iie_buf, everything else is the same */ - if (in->iie_buflen > 0 && in->iie_buf != NULL) { + if (in->iie_buflen > 0 ) { memcpy(out->iie_buf, in->iie_buf, in->iie_buflen); } }