Style. Remove useless return.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
298321a2e9
commit
7028c31d21
@ -88,7 +88,7 @@ intel_update(const char *dev, const char *path)
|
||||
intel_fw_header_t *fw_header;
|
||||
intel_cpu_signature_t *ext_table;
|
||||
intel_ext_header_t *ext_header;
|
||||
uint32_t signature, flags;
|
||||
uint32_t sig, signature, flags;
|
||||
int32_t revision;
|
||||
ssize_t ext_size;
|
||||
size_t ext_table_size;
|
||||
@ -231,7 +231,8 @@ intel_update(const char *dev, const char *path)
|
||||
for (i = 0; i < (ext_table_size / sizeof(uint32_t)); i++)
|
||||
sum += *((uint32_t *)ext_header + i);
|
||||
if (sum != 0) {
|
||||
WARNX(2, "%s: extended signature table checksum invalid",
|
||||
WARNX(2,
|
||||
"%s: extended signature table checksum invalid",
|
||||
path);
|
||||
goto no_table;
|
||||
}
|
||||
@ -249,7 +250,7 @@ intel_update(const char *dev, const char *path)
|
||||
goto matched;
|
||||
else if (have_ext_table != 0) {
|
||||
for (i = 0; i < ext_header->sig_count; i++) {
|
||||
uint32_t sig = ext_table[i].cpu_signature;
|
||||
sig = ext_table[i].cpu_signature;
|
||||
if (signature == sig &&
|
||||
(flags & ext_table[i].cpu_flags) != 0)
|
||||
goto matched;
|
||||
@ -285,5 +286,4 @@ intel_update(const char *dev, const char *path)
|
||||
close(devfd);
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user