netxen: fix bios version calculation

Bios sub version from unified fw image is calculated incorrect.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Amit Kumar Salecha 2010-03-26 00:30:07 +00:00 committed by David S. Miller
parent 4300e8c7f6
commit bb2792e038
1 changed files with 1 additions and 1 deletions

View File

@ -761,7 +761,7 @@ nx_get_bios_version(struct netxen_adapter *adapter)
if (adapter->fw_type == NX_UNIFIED_ROMIMAGE) { if (adapter->fw_type == NX_UNIFIED_ROMIMAGE) {
bios_ver = cpu_to_le32(*((u32 *) (&fw->data[prd_off]) bios_ver = cpu_to_le32(*((u32 *) (&fw->data[prd_off])
+ NX_UNI_BIOS_VERSION_OFF)); + NX_UNI_BIOS_VERSION_OFF));
return (bios_ver << 24) + ((bios_ver >> 8) & 0xff00) + return (bios_ver << 16) + ((bios_ver >> 8) & 0xff00) +
(bios_ver >> 24); (bios_ver >> 24);
} else } else
return cpu_to_le32(*(u32 *)&fw->data[NX_BIOS_VERSION_OFFSET]); return cpu_to_le32(*(u32 *)&fw->data[NX_BIOS_VERSION_OFFSET]);