From: Stefan Richter Date: Sat, 17 Jan 2009 21:45:54 +0000 (+0100) Subject: firewire: core: remove condition which is always false X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d01b01787680a1156ff6a554e40baa460bb88efb;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c index 7276a0d5520..df789d321d1 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; }