Skip to content

Commit

Permalink
dp.c: fix bug in end of hardware device path
Browse files Browse the repository at this point in the history
This is likely a typo. The if condition in question will always be
false, because the value of dp->type is already checked in the if
condition above.
  • Loading branch information
meator committed Jan 27, 2025
1 parent c71c434 commit 178610d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ efidp_format_device_path(unsigned char *buf, size_t size, const_efidp dp,
first = 0;
} else {
if (dp->type == EFIDP_END_TYPE) {
if (dp->type == EFIDP_END_INSTANCE) {
if (dp->subtype == EFIDP_END_INSTANCE) {
format(buf, size, off, "\b", ",");
} else {
return off+1;
Expand Down

0 comments on commit 178610d

Please sign in to comment.