Skip to content

Commit 8f253fb

Browse files
author
Hon Ching(Vicky) Lo
committed
Remove the compiler warning:
tpm_nvcommon.c:143:32: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] Signed-off-by: Hon Ching(Vicky) Lo <honclo@linux.vnet.ibm.com>
1 parent f50ab09 commit 8f253fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/tpm_mgmt/tpm_nvcommon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ int parseStringWithValues(const char *aArg,
140140
aArg);
141141
return -1;
142142
}
143-
if (!aArg[offset+numbytes] == '|' &&
144-
!aArg[offset+numbytes] == 0) {
143+
if (aArg[offset+numbytes] == '|' ||
144+
aArg[offset+numbytes] == 0) {
145145
logError(_("Illegal character following "
146146
"hexadecimal number in %s\n"),
147147
aArg + offset);

0 commit comments

Comments
 (0)