summaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2009-01-17 22:45:54 +0100
committerStefan Richter <stefanr@s5r6.in-berlin.de>2009-03-24 20:56:47 +0100
commitd01b01787680a1156ff6a554e40baa460bb88efb (patch)
treeb4ccc2860654a358e26216cee52d94ee00f57e49 /drivers/firewire
parentaed808927410d0b1d80378492059f22a46974267 (diff)
downloadop-kernel-dev-d01b01787680a1156ff6a554e40baa460bb88efb.zip
op-kernel-dev-d01b01787680a1156ff6a554e40baa460bb88efb.tar.gz
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>
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/fw-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c
index 7276a0d..df789d3 100644
--- a/drivers/firewire/fw-device.c
+++ b/drivers/firewire/fw-device.c
@@ -892,7 +892,7 @@ static int reread_bus_info_block(struct fw_device *device, int generation)
if (i == 0 && q == 0)
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;
}
OpenPOWER on IntegriCloud