broadcom/vc5: Fix a typo in memcmp for sig unpack checking.
This shockingly ended up working out, because only the first byte of *sig is used and (sizeof(*sig) != 0) == 1. Fixes a compiler warning. Link: https://bugs.freedesktop.org/show_bug.cgi?id=104183
This commit is contained in:
parent
1171f1749d
commit
49e2586bfc
|
@ -168,7 +168,7 @@ v3d_qpu_sig_unpack(const struct v3d_device_info *devinfo,
|
|||
|
||||
/* Signals with zeroed unpacked contents after element 0 are reserved. */
|
||||
return (packed_sig == 0 ||
|
||||
memcmp(sig, &v33_sig_map[0], sizeof(*sig) != 0));
|
||||
memcmp(sig, &v33_sig_map[0], sizeof(*sig)) != 0);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in New Issue