Fix incorrect sanity check

Remove invalid sanity check where an array is tested against NULL -
not a pointer

Change-Id: I3d5e33585e7f97a41124af4133e8a879ab21d972
This commit is contained in:
Emmanuel Blot 2015-01-19 14:31:46 +01:00 committed by Lionel Sambuc
parent 4f89addcc1
commit 54841c0102

View file

@ -39,7 +39,7 @@ static void rewrite_i2c_minix_to_netbsd(i2c_ioctl_exec_t *out,
minix_i2c_ioctl_exec_t *in) minix_i2c_ioctl_exec_t *in)
{ {
/* the only field that changes is iie_buf, everything else is the same */ /* 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); memcpy(out->iie_buf, in->iie_buf, in->iie_buflen);
} }
} }