mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
firewire: core: remove condition which is always false
reread_bus_info_block() only gets to see devices whose config_rom_length is at least 6 (ROM header, bus info block, root directory header). Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
aed8089274
commit
d01b017876
1 changed files with 1 additions and 1 deletions
|
@ -892,7 +892,7 @@ static int reread_bus_info_block(struct fw_device *device, int generation)
|
||||||
if (i == 0 && q == 0)
|
if (i == 0 && q == 0)
|
||||||
return REREAD_BIB_GONE;
|
return REREAD_BIB_GONE;
|
||||||
|
|
||||||
if (i > device->config_rom_length || q != device->config_rom[i])
|
if (q != device->config_rom[i])
|
||||||
return REREAD_BIB_CHANGED;
|
return REREAD_BIB_CHANGED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue