https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210706
Bug ID: 210706
Summary: freebsd/sys/boot/efi/boot1/boot1.c:631]: (style)
Suspicious condition
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
freebsd/sys/boot/efi/boot1/boot1.c:631]: (style) Suspicious condition
(assignment + comparison); Clarify expression with parentheses.
Source code is
if ((status = bs->AllocatePool(EfiLoaderData, hsize,
(void **)&handles) != EFI_SUCCESS)) {
Maybe better code
if ((status = bs->AllocatePool(EfiLoaderData, hsize,
(void **)&handles)) != EFI_SUCCESS) {
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"