Remove dead assignments, we overwrite the variable almost immediately.

Found by:	clang static analyzer
This commit is contained in:
Gavin Atkinson 2010-06-19 16:29:23 +00:00
parent ae7f9676e7
commit acdfff93b6
2 changed files with 0 additions and 3 deletions

View File

@ -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);

View File

@ -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;