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:
parent
4f89addcc1
commit
54841c0102
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue