firmware-utils/ptgen: remove unused variable assignment
authorDaniel Golle <daniel@makrotopia.org>
Sun, 14 Mar 2021 19:04:20 +0000 (19:04 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 14 Mar 2021 21:59:58 +0000 (21:59 +0000)
commit10214c0a4ed33421719e7c00b819d430110b627a
tree3a09b52a647c5f8a55ffc16e9d4c4ee154c3869b
parent2a84fbed1d1040f65331399ecc9e67c58e02e962
firmware-utils/ptgen: remove unused variable assignment

Discovered by coverty:

 CID 1473630:  Code maintainability issues  (UNUSED_VALUE)

 Assigning value from "type_to_guid_and_name(type, &name)" to
 "part_guid" here, but that stored value is overwritten before it can
 be used.

Remove the now redundant assignment of part_guid which is also set
conditionally later on.

Fixes: 4a078bd135 ("firmware-utils/ptgen: fix partition guid and name")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
src/ptgen.c