mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
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>
This commit is contained in:
parent
05dbfe616d
commit
00a326a736
@ -630,7 +630,6 @@ int main (int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
type = (char)strtoul(optarg, NULL, 16);
|
type = (char)strtoul(optarg, NULL, 16);
|
||||||
part_guid = type_to_guid_and_name(type, &name);
|
|
||||||
break;
|
break;
|
||||||
case 'a':
|
case 'a':
|
||||||
active = (int)strtoul(optarg, NULL, 0);
|
active = (int)strtoul(optarg, NULL, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user