From: Emmanuel Blot Date: Mon, 19 Jan 2015 13:31:46 +0000 (+0100) Subject: Fix incorrect sanity check X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F2957%2F1;p=minix.git Fix incorrect sanity check Remove invalid sanity check where an array is tested against NULL - not a pointer Change-Id: I3d5e33585e7f97a41124af4133e8a879ab21d972 --- 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); } }