[Bug 229717] src/lib/libefivar/efivar-dp-parse.c:344]: (style) Redundant condition
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jul 12 10:05:33 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229717
Bug ID: 229717
Summary: src/lib/libefivar/efivar-dp-parse.c:344]: (style)
Redundant condition
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: bugs at FreeBSD.org
Reporter: dcb314 at hotmail.com
src/lib/libefivar/efivar-dp-parse.c:344]: (style) Redundant condition: If 'EXPR
== ' '', the comparison 'EXPR != 0' is always true.
[src/lib/libefivar/efivar-dp-parse.c:350]: (style) Redundant condition: If
'EXPR == '0'', the comparison 'EXPR != 0' is always true.
Source code is
while ((*Str != 0) && *Str == ' ') {
Str ++;
}
//
// skip preceeding zeros
//
while ((*Str != 0) && *Str == '0') {
maybe better code
while (*Str == ' ') {
Str ++;
}
//
// skip preceeding zeros
//
while (*Str == '0') {
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list