Remove dead assignments, we overwrite the variable almost immediately.
Found by: clang static analyzer
This commit is contained in:
parent
ae7f9676e7
commit
acdfff93b6
@ -92,9 +92,7 @@ amd_update(const char *dev, const char *path)
|
||||
assert(dev);
|
||||
|
||||
fd = -1;
|
||||
devfd = -1;
|
||||
fw_image = MAP_FAILED;
|
||||
error = 0;
|
||||
devfd = open(dev, O_RDWR);
|
||||
if (devfd < 0) {
|
||||
WARN(0, "could not open %s for writing", dev);
|
||||
|
@ -104,7 +104,6 @@ intel_update(const char *dev, const char *path)
|
||||
assert(dev);
|
||||
|
||||
fd = -1;
|
||||
devfd = -1;
|
||||
fw_image = MAP_FAILED;
|
||||
ext_table = NULL;
|
||||
ext_header = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user