]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/firmware/iscsi_ibft.c
bnx2: Update 5706/5708 firmware.
[linux-2.6-omap-h63xx.git] / drivers / firmware / iscsi_ibft.c
index 8024e3bfd8774e4c52383cc7918eb46781fc0ffd..b91ef63126ede7decff0bdbbbd475f03a07bd219 100644 (file)
@@ -669,8 +669,7 @@ static int __init ibft_register_kobjects(struct ibft_table_header *header,
 
        control = (void *)header + sizeof(*header);
        end = (void *)control + control->hdr.length;
-       eot_offset = (void *)header + header->length -
-                    (void *)control - sizeof(*header);
+       eot_offset = (void *)header + header->length - (void *)control;
        rc = ibft_verify_hdr("control", (struct ibft_hdr *)control, id_control,
                             sizeof(*control));